sendmail error

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
geethalakshmi
Forum Commoner
Posts: 31
Joined: Thu Apr 24, 2008 10:38 pm

sendmail error

Post 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
User avatar
aceconcepts
DevNet Resident
Posts: 1424
Joined: Mon Feb 06, 2006 11:26 am
Location: London

Re: sendmail error

Post by aceconcepts »

Post Reply