Page 1 of 1

sendmail error

Posted: Fri Oct 10, 2008 7:42 am
by geethalakshmi
Hi,

I had test a page with simple sendmail in php. I used the below code

Code: Select all

$from = "From: $visitormail\r\n";
mail("deva@hiox.com", $subject, $message, $from);
but i got the error message

Code: Select all

Warning: mail(): "sendmail_from" not set in php.ini or custom "From:" header missing in e:\sendeail.php on line 57
Please let me know where did i went wrong. is anything there to do with ini file.

Thanks in advance!
Geetha

Re: sendmail error

Posted: Fri Oct 10, 2008 7:49 am
by aceconcepts