Can't send mail in "Forget password" function when logging - 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: Can't send mail in "Forget password" function when logging (/showthread.php?tid=41860) |
Can't send mail in "Forget password" function when logging - El Forum - 05-18-2011 [eluser]haily_php[/eluser] i have 1 problem when I have executed "Forget password" function in Logging. Code: 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() I have configured Email.php in system/libraries Code: var $useragent = "CodeIgniter"; But it has not run? Please help me Can't send mail in "Forget password" function when logging - El Forum - 05-19-2011 [eluser]approacher[/eluser] I guess you might have edited the system/libraries/Email.php if so nothing to do with that. first be ensure that if chuahaiquang.com.vn actually providing smtp service why to wonder. create your gmail account if you dont have and enable the smtp service after going to setting. then it works .gmail provides free smtp service then inside config folder create file something like Email.php and copy paste the below code Code: $config['protocol'] = 'smtp'; Then edit php.ini ====>SMTP= smtp.gmail.com Can't send mail in "Forget password" function when logging - El Forum - 05-19-2011 [eluser]haily_php[/eluser] Thanks for helping but it has appeared other error: Code: 530 5.7.0 Must issue a STARTTLS command first Can't send mail in "Forget password" function when logging - El Forum - 05-21-2011 [eluser]approacher[/eluser] Did you enable smtp service in gmail account?? go to setting -->Forwarding and POP/IMAP -->Enable POP for all mail (even mail that's already been downloaded) OR Enable POP only for mail that arrives from now on and save changes http://www.google.com/support/forum/p/Google Apps/thread?tid=396e53acd0030ef4&hl=en Can't send mail in "Forget password" function when logging - El Forum - 05-21-2011 [eluser]haily_php[/eluser] Thanks for helping but my problem has solved, it has not worked because my stupid fault: Not open mode ssl extension in php.ini |