Mail Function Not Working
Posted: Sat Oct 08, 2005 9:14 am
Hello to All!
I am sending e-mail from my own computer using PHP mail function. i got the following error:
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:apachefriendsxampphtdocsxamppmailmail.php on line 9
An error occurred when sending the email to ashrafzia@gmail.com from ashrafzia@yahoo.com
i have made the following changes in PHP.ini file;
1- smtp=localhost
2- sendmail_from=ashrafzia@yahoo.com
Are there any more changes to do in it?
Q#2: How can i change the port number?
I would be very thankful for any Reply.
I am sending e-mail from my own computer using PHP mail function. i got the following error:
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:apachefriendsxampphtdocsxamppmailmail.php on line 9
An error occurred when sending the email to ashrafzia@gmail.com from ashrafzia@yahoo.com
i have made the following changes in PHP.ini file;
1- smtp=localhost
2- sendmail_from=ashrafzia@yahoo.com
Are there any more changes to do in it?
Q#2: How can i change the port number?
I would be very thankful for any Reply.