otuatail Posted July 30, 2008 Share Posted July 30, 2008 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 More sharing options...
revraz Posted July 30, 2008 Share Posted July 30, 2008 The sender probably has to be a real account on your domain, since in reality, your script is the sender, which is on your webhost. Link to comment https://forums.phpfreaks.com/topic/117340-mail-problem/#findComment-603580 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.