msafvati Posted June 30, 2007 Share Posted June 30, 2007 hi i set up SMTP and sendmail_from in my windows (php.ini) but when use from this sample code i have warning please guid me: SMTP: mail.yahoo.com sendmail_from:msafvati@yahoo.com code is : <? mail('masafvati@gmail.com','Subject','body of message', "From:msafvati@yahoo.com\n"); ?> warning is :Warning: mail() [function.mail]: "sendmail_from" not set in php.ini or custom "From:" header missing in C:\Documents and Settings\Administrator\My Documents\php5\mail.php on line 3 please guid me thank you msafvati Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.