Hi,
I am hosted by Hostdepartment and my site is written using php(v4? I think)
Anyway, Whenever I try to send a mail to user who has just joined, or wants to send a message to another user.. I get the following error message
Warning: mail(): SMTP server response: 554 sorry, sender mail address must correspond to local mail domain (#5.7.1) in F:...(filepath)
The code I use is below..
$headers = "MIME-Version: 1.0\r\n";
$headers .= "Content-type: text/html; charset=iso-8859-1\r\n";
$headers .= "From: AMember@japan-world.com\r\n";
$headers .= "Reply-To: AMember@japan-world.com\r\n";
$userAddress="kennymacphiejp@yahoo.co.uk";
mail($userAddress,"Message from a Japan World user.",$message,$headers);
I know this code works, because I've tested it, and some days I get the SMTP message and some days the mail is sent.
So I guess its my hosts fault, they have said that its been fixed twice now, each time I check and it works for a couple of days, then I start getting the old 554 smtp message..
Has anyone else had this problem with mail() in PHP? If this is the kindof support that php gets from hosts, I'm not impressed!!
😕