Page 1 of 1

send mail problem

Posted: Thu Jul 01, 2010 2:43 am
by adsegzy
I designed a form to be sent to some email addresses after is it submitted. but when ever i the submit button is clicked i always receive this message;
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:\xampp\htdocs\myproject\products\show_interest.php on line 244
i added php.ini file like below but it is not working
output_buffering on
i also used .htaccess
PHP_FLAG output_buffering on
what can i do?

Re: send mail problem

Posted: Fri Jul 02, 2010 10:02 am
by Jade
You usually get that error if your mail server isn't turned on, if you don't have access to the port, or if your mail server happens to be running on a different port in which case you'd need to update your php.ini to use the correct one.