I’ve implemented the yii-user module in a new php project and everything works fine. But when i register, the program should sent an activation email , but when i press the register button i get the following error:
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’ve searched and i changed my ini file to:
; For Win32 only.
; http://php.net/smtp
SMTP = smtp.gmail.com
; http://php.net/smtp-port
smtp_port = 465
; For Win32 only.
; http://php.net/sendmail-from
sendmail_from = xxxxxxx@gmail.com
But that didn’t help.
How do i solve this
I solved it by just installing and running this little program : http://smtp4dev.codeplex.com/
This program sits in the system tray and does not deliver the received messages and the webapp runs just fine!
Thanks all for your help!