Page 1 of 1

Warning: mail(): "sendmail_from" not set in php.ini

Posted: Fri Sep 19, 2008 6:34 am
by geethalakshmi
Hi,

When i tried to send mail from localhost, i received an error stating it:

Code: Select all

Warning: mail(): "sendmail_from" not set in php.ini or custom "From:" header missing in
But it works in the server.

Pls help!

-Geetha

Re: Warning: mail(): "sendmail_from" not set in php.ini

Posted: Fri Sep 19, 2008 7:45 am
by jayshields
Either set your sendmail_from value in php.ini or specify a "From: whatever.com\r\n" in the header parameter of the mail() call.