I want to send an e-mail using a php code,I am using wampserver.
an error appear :
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() in C:\wamp\www\Newsletter1\index.php on line 29
My file php.ini
[mail function]
; For Win32 only.
; http://php.net/smtp
SMTP = localhost
; http://php.net/smtp-port
smtp_port = 25
; For Win32 only.
; http://php.net/sendmail-from
sendmail_from = myEmail@gmail.com
Is there any more configuration to do?
Update
I'am using the mail function to send a newsletter to subscriber and I am testing now locally then I will test the code on production environment