Does anyone know how to send the email correctly? |
[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
[eluser]John_Betong_002[/eluser]
A quick Google : http://www.google.co.th/search?aq=f&sour...ie=UTF-8&q="Failed+to+connect+to+mailserver+at+“localhost”" Reveals umpteen results. This is not a CI problem ![]()
[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.
[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 |
Welcome Guest, Not a member yet? Register Sign In |