Jump to content

mail () Problem.


otuatail

Recommended Posts

Hi

Can anyone sort out the mess. I am currently paying for a web service and have had another set up on a diffent machine. One mail() function work the other dosn't. They tell me that it is because I am using the function wrong.

 

---They say ---

This issue is occuring because there is a missing fifth parameter in your mail script. This has always been a requirement of mail scripts on our shared hosting platform but recent updates to our Linux servers (from PHP4 to PHP5) has meant that this is now always required.

----------------

 

W3schools state only the first 3 are required 4 and 5 are optional. I need to have a headder with the email address of the sender.

There sugested script  does not allow for this as in.

 

$res = mail("[email protected]", "Test", "This is amessage ", "From: [email protected]", "[email protected]");

 

Any help on this as this email does work but not if I want the real senders email address in it.

 

Paul.

 

 

 

 

Link to comment
https://forums.phpfreaks.com/topic/117340-mail-problem/
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.