mail() :Failed 2 connect 2 mailserver at "localhost" port 25
Posted: Sat Oct 10, 2009 3:40 am
Hi frndz,
I am using wamp and I am trying to send mail from my local machine
Code is running but i get this error on script execution:-
Warning: 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\test\mail.php on line 20
I have a lighter idea that its because of smtp settings in .ini file....
but not sure what to edit and where to edit....
Plz suggest me some solution or way to send mail from local machine.
I am using wamp and I am trying to send mail from my local machine
Code is running but i get this error on script execution:-
Warning: 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\test\mail.php on line 20
I have a lighter idea that its because of smtp settings in .ini file....
but not sure what to edit and where to edit....
Plz suggest me some solution or way to send mail from local machine.