I'm using the mail command to mail off some messages. I want from to say "John Doe". So I do this:
$to="me@me.com";
$subject="Me";
$message="More me";
$headers="From: John DoenReply-To: john@doe.comnX-Mailer: PHP/" . phpversion();
mail("$to","$subject","$message","$headers");

However, when the mail arrives in my mailbox, the from field reads: "John.Doe@thisaddress.com" where thisaddress is the long server address of the webserver. My question is can I get the from field to appear without the @thisaddres.com anywhere in there? I'm not sure if this is possible, but I think it should be so I'm hoping. Thanks in advance.

<BLOCKQUOTE><font size="1" face="Verdana,Arial,Helvetica">quote:</font><HR>Originally posted by polman:I'm using the mail command to mail off some messages. I want from to say "John Doe". So I do this:
$to="me@me.com";
$subject="Me";
$message="More me";
$headers="From: John DoenReply-To: john@doe.comnX-Mailer: PHP/" . phpversion();
mail("$to","$subject","$message","$headers");[/quote]

I not an expert but i think if you chage the from header to read
From: John Doe<john@doe.com>