GoDaddy and the Email Class |
[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 = "<html><head><title>Test</title></head><body><p>Hello</p></body></html>"; 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 <html><head><title>Test</title></head><body><p>Hello</p></body></html> --B_ALT_4a26e5727b7d9-- ---------------------------------------------------- I have been searching this forum and many others and cannot find the answer. Any help would be appreciated. Thanks
[eluser]dootzky[/eluser]
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. ![]() 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.
[eluser]scherman[/eluser]
Hey, i have the same problem, and i don't know how to fix it. Did you find the solution?
[eluser]dootzky[/eluser]
nope, I simply switched hosting from goDaddy to pretty much *anywhere else*, and the code worked perfectly. ![]() goDaddy has it's limits. and I do mean that, literally (no cron, no HTML emails, etc) cheers and good luck! ![]() d |
Welcome Guest, Not a member yet? Register Sign In |