![]() |
Does anyone know how to send the email correctly? - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Libraries & Helpers (https://forum.codeigniter.com/forumdisplay.php?fid=22) +--- Thread: Does anyone know how to send the email correctly? (/showthread.php?tid=42247) |
Does anyone know how to send the email correctly? - El Forum - 05-31-2011 [eluser]FreshProgrammer[/eluser] Hi.. I already set the setting at application/librarry/email.php .But,still i can not send email through this codeigniter. Below shows the error message that i had encountered. Severity: Warning Message: mail() [function.mail]: Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() Filename: libraries/Email.php Line Number: 1519 If i am not mistaken,the space for smtp just leave it blank right? Does anyone know how to send the email correctly? Thank You Does anyone know how to send the email correctly? - El Forum - 06-01-2011 [eluser]John_Betong_002[/eluser] A quick Google : http://www.google.co.th/search?aq=f&sourceid=chrome&ie=UTF-8&q="Failed+to+connect+to+mailserver+at+“localhost”" Reveals umpteen results. This is not a CI problem ![]() Does anyone know how to send the email correctly? - El Forum - 06-01-2011 [eluser]FreshProgrammer[/eluser] 'Thanks You' Does anyone know how to send the email correctly? - El Forum - 06-01-2011 [eluser]osci[/eluser] I don't know if you fixed it already. From user guide - email class Code: Preference Default Value Options Description so you should set your host, user and password. smpt_port defaults to 25, so if that's what you use you can ignore this config. Does anyone know how to send the email correctly? - El Forum - 06-01-2011 [eluser]InsiteFX[/eluser] Best way edit php.ini and set it to your hosting provider SMTP port etc! Like I have Comcast and use their SMTP config in php.ini InsiteFX |