View Single Post
  #3 (permalink)  
Old 17-02-2007, 18:02
swexpert swexpert is offline
Premium Member
 
Join Date: Jan 2007
Posts: 209
Default

Hi paul,
Apparently the script sending the mail is not correctly interpreting the "From: " header. In such a case, php mail() function uses the default email address as set in php sendmail_from.

Use "From: youremail@yourdomain.tld" in the headers. Optionally, in some cases, you need to add the -f parameter in the mail function
Eg. NORMAL: mail("recipient@somedomain.com","Subject comes here", "This is the message text", "From: youremail@yourdomain.com");

WITH -F: mail("recipient@somedomain.com","Subject comes here", "This is the message text", ,"-fyouremail@yourdomain.com");

Hope this helps

Regds
IJ
Reply With Quote