Jump to content

warning in mail()


msafvati

Recommended Posts

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:[email protected]

 

code is :

<?

mail('[email protected]','Subject','body of message',

"From:[email protected]\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

Link to comment
https://forums.phpfreaks.com/topic/57859-warning-in-mail/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.