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
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