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

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

Code:
$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->initialize($mailConfig);
$this->email->from('[email protected]', 'Cyphercore Tech');
$this->email->to('[email protected]');
$this->email->subject('Cyphercoretech.com: Confirm Registration');
$this->email->message($eMsg);
$this->email->send();

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.

Clues:
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-PIPELINING
250-SIZE 31457280
250 8BITMIME

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"
Return-Path:
To: 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.

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

Hello


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

&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>

--B_ALT_4a26e5727b7d9--

----------------------------------------------------

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

Thanks


Messages In This Thread
GoDaddy and the Email Class - by El Forum - 06-03-2009, 03:10 PM
GoDaddy and the Email Class - by El Forum - 05-15-2010, 07:59 AM
GoDaddy and the Email Class - by El Forum - 07-29-2011, 07:55 PM
GoDaddy and the Email Class - by El Forum - 07-30-2011, 12:44 AM



Theme © iAndrew 2016 - Forum software by © MyBB