Jump to content

email form error


stef34

Recommended Posts

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

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.