Forum Moderators: coopster

Message Too Old, No Replies

What's wrong with this mail code?

Can receive this on some addresses but not others.

         

HughMungus

5:34 am on Dec 14, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



$mailto = $email;
$xHeaders = "From: myname@mydomain.com";
$subject="Subject";
$text = "Some message.";
mail($mailto, $subject, $text, $xHeaders);

I can get this email to one of my mailboxes but not another (strangely, the email address of the host from which I'm sending it). Do I need separate headers for the "to" and "from" or something?

waldemar

8:33 am on Dec 14, 2004 (gmt 0)

10+ Year Member



There is several issues about PHP's mail command, best recommendation is the lecture of the user comments on the mail command at php dot net. For example, one guy was more lucky moving the recipients into the header...