email->send() returns incorectly |
[eluser]Dan Bowling[/eluser]
I'm getting a bad return on my send() function of the email helper. Code: $alumni = $this->alumni_model->get_alumni_in_region_by_city($region, $city); When that evaluates, the page outputs failed, even though I get the email. I'm using XAMPP with a remote SMTP gateway. Any ideas?
[eluser]Derek Allard[/eluser]
can you work through the email lib to figure out where its dying?
[eluser]Derek Jones[/eluser]
Also what is output by $this->email->print_debugger()?
[eluser]thinkigniter[/eluser]
I had a similar problem on our Intranet and this is how I got it to work. First I used the sendmail replacement from glob.com.au. placing the sendmail.exe in C:/wamp/bin/sendmail And configured the sendmail.ini Then I set this in my php. Code: $config_mail['protocol'] = 'sendmail'; And made sure port 25 was open on the Intranet Server And it worked like a charm. I was very surprised it wasn't harder!
[eluser]Dan Bowling[/eluser]
I've enabled email debugging, and I get the following message: Unable to send email using PHP SMTP. Your server might not be configured to send mail using this method. Here's the full details: Code: 220 xxx.xxx.xxx ESMTP Sendmail Switch-3.3.1/Switch-3.3.1; Wed, 10 Sep 2008 12:33:18 -0600 (MDT) I'll try to go through the library and determine what specifically is causing it later tonight. I'm using an external SMTP server, so I shouldn't have to set up sendmail locally, right? Otherwise my email wouldn't be going out at all (which it is.) I've verified that my php.ini settings are correct (and since I'm using XAMPP, I've checked to make sure it is right in the php and apache folder, since it might be using either one.)
[eluser]Derek Jones[/eluser]
Are you on Windows, dbowling? IIRC, you'll have to manually set the sendmail_from address in your php.ini for SMTP in that environment for a valid Return-Path Sender address. |
Welcome Guest, Not a member yet? Register Sign In |