dannydefreak Posted February 8, 2007 Share Posted February 8, 2007 Hi guys. I am Daniel.I was trying to emailfrom a php page and i ahev got all the codes and stuff but i get the following message ; " Warning: 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 W:\www\sendemail.php on line 2 ". I have tried going to the php.ini configuration file and changing the settings of smtps, i.e, SMTP, smtp_port, ... Previously( before two days ago or so) i had the same problem and i changed some smtp settings that i don't remember right now and it worked( at least it stopped displaying the previous err message).The problem then was, although it didn't display an err msg, it didnot reach the target email address. Can any one help me out ? Thnx. Link to comment https://forums.phpfreaks.com/topic/37615-need-help-for-mailing-using-php/ Share on other sites More sharing options...
dannydefreak Posted February 8, 2007 Author Share Posted February 8, 2007 By the way, the code i m using for the email is <?php mail("[email protected]", "Hello World", "Hi, world. Prepare for our arrival.We're starving!", "[email protected]"); ?> Link to comment https://forums.phpfreaks.com/topic/37615-need-help-for-mailing-using-php/#findComment-179900 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.