![]() |
Email Problem - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Email Problem (/showthread.php?tid=24983) Pages:
1
2
|
Email Problem - El Forum - 11-26-2009 [eluser]BenRob[/eluser] Hi all I'm having a problem with email. I've used this loads but I've just moved to rackspace and I'm having a problem. If I use the PHP mail() function it works fine. but when I use the code below it doesn't work. It says the email has been sent using the debugger but nothing in my inbox. Any help would be much appreciated. Quote:Your message has been successfully sent using the following protocol: sendmail Code: $HTML_message = '<p>Hi, '.$userdetails->first_name.'</p>'; Email Problem - El Forum - 11-26-2009 [eluser]BenRob[/eluser] Please someone help. I am really stuck Email Problem - El Forum - 11-26-2009 [eluser]uptime[/eluser] Did you check your spam folder? Email Problem - El Forum - 11-26-2009 [eluser]BenRob[/eluser] [quote author="uptime" date="1259277908"]Did you check your spam folder?[/quote] yeah I've checked it there is nothing there. Email Problem - El Forum - 11-26-2009 [eluser]uptime[/eluser] Can you try SMTP instead of Sendmail? (assuming you have an SMTP app on this server) It's probably a sendmail/server configuration issue, not PHP. Email Problem - El Forum - 11-26-2009 [eluser]BenRob[/eluser] [quote author="uptime" date="1259278707"]Can you try SMTP instead of Sendmail? (assuming you have an SMTP app on this server) It's probably a sendmail/server configuration issue, not PHP.[/quote] The server doesnt use smtp it's weird but normal PHP mail function will work but the CI won't Email Problem - El Forum - 11-26-2009 [eluser]uptime[/eluser] Is your email ben [[at]] gmail? I thought the minimum chars was like 4,5 or 6 chars, I got mine ('uptime') days after gmail went into a private Beta and I remember it had a minimum char requirement. I took ben@ from the debug info, is it the correct address? Also, I don't see the html tags in the debug but do see them in the code, is this normal? Email Problem - El Forum - 11-26-2009 [eluser]uptime[/eluser] Just a thought on how to debug it... You should probably debug it on system/libraries/Email.php around line 1538 (function _send_with_sendmail()). I would probably var_dump( $this->mailpath . " -oi -f ".$this->clean_email($this->_headers['From'])." -t", $status ); right after $status is returned. Make sure mailpath (sendmail binary) is the correct path (you can use "which sendmail"), make sure the headers make sense and finally, check out the returned status. Maybe it will give you a hint... Happy (yeah, right...) debugging! Email Problem - El Forum - 11-26-2009 [eluser]Unknown[/eluser] thanks Email Problem - El Forum - 12-07-2009 [eluser]Unknown[/eluser] Just turn off the spam filter in Rackspace email program settings > Spam settings... you will receive all the emails. |