Welcome Guest, Not a member yet? Register   Sign In
GoDaddy and the Email Class

I know that there are many issues with GoDaddy and CI, but I have an issue that doesn't make sense.

$eMsg = "&lt;html&gt;&lt;head>&lt;title&gt;Test&lt;/title&gt;&lt;/head>&lt;body&gt;&lt;p>Hello</p>&lt;/body&gt;&lt;/html>";
$mailConfig['protocol'] = "smtp";
$mailConfig['smtp_host'] = "relay-hosting.secureserver.net";
$mailConfig['smtp_user'] = "********";
$mailConfig['smtp_pass'] = "******";
$mailConfig['smtp_port'] = "25";
$mailConfig['mailtype'] = "html";
$mailConfig['validate'] = "TRUE";

$this->email->from('[email protected]', 'Cyphercore Tech');
$this->email->to('[email protected]');
$this->email->subject('Cyphercoretech.com: Confirm Registration');

echo $this->email->print_debugger();

I have tried the following:
1) Load library via constructor and initialize the library with a config as above
2) Load library direct as in $this->load->library('email', $someConfig)
3) Set values in Email config, load library and send

Everything works local, but when I upload the code to GoDaddy's Linux environment, the emails fail.

1) The mail() does work
2) I have tweaked php.ini, but nothing I did made an impact
3) The debugger tells me this:
220 p3nlsmtp02.shr.prod.phx3.secureserver.net ESMTP

hello: 250-p3nlsmtp02.shr.prod.phx3.secureserver.net
250-SIZE 31457280

Failed to send AUTH LOGIN command. Error: 502 unimplemented (#5.5.1)

from: 250 ok

to: 250 ok

data: 354 go ahead punk, make my day

451 See http://pobox.com/~djb/docs/smtplf.html.
The following SMTP error was encountered: 451 See http://pobox.com/~djb/docs/smtplf.html.
Unable to send email using PHP SMTP. Your server might not be configured to send mail using this method.

User-Agent: CodeIgniter
Date: Wed, 3 Jun 2009 15:04:50 -0600
From: "XXXX"
Subject: =?utf-8?Q?XXXX?=
Reply-To: "XXXX"
X-Sender: XXXX
X-Mailer: CodeIgniter
X-Priority: 3 (Normal)
Message-ID: <[email protected]>
Mime-Version: 1.0

Content-Type: multipart/alternative; boundary="B_ALT_4a26e5727b7d9"

This is a multi-part message in MIME format.
Your email application may not support this format.

Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit


Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: quoted-printable




I have been searching this forum and many others and cannot find the answer. Any help would be appreciated.


quick note - I'm 99% sure that this is a problem because stupid f*cking godaddy is blocking HTML emails from being sent.

Try to put "text" as your email type, and you'll see that they will be sent. Tongue
so only HTML emails are blocked.

I'm working on a work around this for this problem, I'll post it here if I find it.

Hey, i have the same problem, and i don't know how to fix it. Did you find the solution?

nope, I simply switched hosting from goDaddy to pretty much *anywhere else*, and the code worked perfectly. Smile

goDaddy has it's limits. and I do mean that, literally (no cron, no HTML emails, etc)

cheers and good luck! Smile

Theme © iAndrew 2016 - Forum software by © MyBB