![]() |
I choose SMTP, but get mail() error - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21) +--- Thread: I choose SMTP, but get mail() error (/showthread.php?tid=15853) |
I choose SMTP, but get mail() error - El Forum - 02-03-2012 [eluser]nunomira[/eluser] In my tests I have also got a lot of errors, depending on the server and on what was missing. Here are some errors for future reference: Quote:451 See http://pobox.com/~djb/docs/smtplf.html. Quote:Severity: Warning Quote:Unable to send email using PHP mail(). Your server might not be configured to send mail using this method. Quote:Severity: Warning Quote:Fatal error: Maximum execution time of ... I was astonished to find out that two different servers (unix and windows) didn't allow me to send email because Code: $config['newline'] = "\r\n"; I choose SMTP, but get mail() error - El Forum - 02-03-2012 [eluser]nunomira[/eluser] So, with: - a SMTP server - the right credentials - the correct configuration email.php file - the newline parameter defined as above I was able to send emails from my local PHP installation, using Wampserver on Windows 7. No need to: - edit anything in php.ini - use ini_set() I choose SMTP, but get mail() error - El Forum - 11-28-2012 [eluser]Unknown[/eluser] [quote author="nunomira" date="1328273673"]In my tests I have also got a lot of errors, depending on the server and on what was missing. Here are some errors for future reference: Quote:451 See http://pobox.com/~djb/docs/smtplf.html. Quote:Severity: Warning Quote:Unable to send email using PHP mail(). Your server might not be configured to send mail using this method. Quote:Severity: Warning Quote:Fatal error: Maximum execution time of ... I was astonished to find out that two different servers (unix and windows) didn't allow me to send email because Code: $config['newline'] = "\r\n"; [/quote] Yes, this!!! I was having errors with the Communicate module in EE 1.7x; Running on a Windows server. Needed to change system>core>core.email.php so that var $newline = "\r\n"; var $crlf = "\r\n"; Now the mail is sent. I choose SMTP, but get mail() error - El Forum - 11-28-2012 [eluser]InsiteFX[/eluser] The reason you are all having this problem, is because the smtp settings are in your php.ini file. php.ini Code: [mail function] |