stef34 Posted April 23, 2007 Share Posted April 23, 2007 HELP!! I'm new to php but have got this script for a simple php form and get this message on submitting the form: PHP Warning: mail() [function.mail]: "sendmail_from" not set in php.ini or custom "From:" header missing the error points to this line of code mail($toaddress,$subject,$message,"From: $name <$email>"); Don't why?? I can't find any answers from the server I have attached the php if anyone can help that would be great [attachment deleted by admin] Link to comment https://forums.phpfreaks.com/topic/48347-email-form-error/ Share on other sites More sharing options...
redbullmarky Posted April 23, 2007 Share Posted April 23, 2007 Welcome to the forums I'm moving this topic to the correct place - please read the forum/board guidelines before posting as the OOP forum is for questions related to OOP rather than general PHP help.... personally I use phpMailer so I don't really delve into the specifics of the mail function and its errors/warnings (though I probably should)... Cheers Link to comment https://forums.phpfreaks.com/topic/48347-email-form-error/#findComment-236403 Share on other sites More sharing options...
mpharo Posted April 23, 2007 Share Posted April 23, 2007 try adding a $from variable and populating it, then in the mail() call that instead of the "FROM: " Link to comment https://forums.phpfreaks.com/topic/48347-email-form-error/#findComment-236408 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.