BillyJoe wrote:
> I have a quick (hopefully) question about using the mail() function. I
> am taking info from an html form, but the problem lies in the headers
> section of the mail.
> I want the email coming through to show that they came from the
> site....
>
> $xHeaders = "From: Web Site";
>
> but I also want to set up the reply to with the email address that is
> filled in by the customer.....
>
> $xHeaders .= "\nReply-To: ".$_POST['email'];
>
> These both work nicely on there own, but together the 'Reply To' will
> always overide the 'From' field, so in the emails I receive the from
> field gives the reply to email address, and not the 'Web Site' string,
> as it should.
>
> Can these two not work together?
>
> Any thoughts gratefully received.
>
> BJOE
I believe the From: needs a real existing email adress.