narek Posted March 13, 2011 Share Posted March 13, 2011 Hello there..i would be thankful to you if you help me with the following problem... how can i send e-mails using localhost ? I<?phpmail("me@yahoo.com","hey","just wanted to test","");echo "Mail Sent.";?> after running this i get the following Warning: mail() [function.mail]: "sendmail_from" not set in php.ini or custom "From:" header missing in C:\xampp\htdocs\E_mail.php on line 2Mail Sent. Link to comment Share on other sites More sharing options...
justsomeguy Posted March 13, 2011 Share Posted March 13, 2011 It wants you to add a From header, or set the default from address in php.ini. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.