jijodasgupta Posted February 22, 2009 Share Posted February 22, 2009 this has been bugging me for quite some time now.... im usong a normal php form to send mail to my gmail account... keeps on showin the 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:\xampp\htdocs\sendeail.php on line 59 /quote] ...my php.ini file looks like [mail function] ; For Win32 only. SMTP = localhost smtp_port = 25 ; For Win32 only. ;sendmail_from = [email protected] also googled it n found no reasonable solutions.....so last option!!!! anyone fixed such problem???? Link to comment https://forums.phpfreaks.com/topic/146392-php-mail-failure/ Share on other sites More sharing options...
only one Posted February 22, 2009 Share Posted February 22, 2009 I think that could be because your port 25 is not forwarded. But I could be wrong. Link to comment https://forums.phpfreaks.com/topic/146392-php-mail-failure/#findComment-768611 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.