Jump to content

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.