I set up a simple php script to test the mail() function, but I can't get it to send.
><?
mail("recipient@domain2.com", "Test Subject", "Body Line 1\n Body Line 2\n Body Line 3", "From: sender@domain1.com");
?>
It will work if the recipient is the same as the sender, but if sent to a different domain, the message never arrives.
Here are a couple of header lines from the message received on the same domain.
Received: from nobody by server17.totalchoicehosting.com
From: sender@domain1.com
Any ideas?