----- Original Message -----
From: "Vernon" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, March 17, 2003 12:09 PM
Subject: [PHP] Email always set to server's email, why?


> All the email coming from a web site, even though I have set the Reply-To,
> have the Reply-To set to [EMAIL PROTECTED] Anyone have any ideas why? I
> want the reply-to set to somethign else.
>
> Here is what I have:
>
> mail("$clubemail", "$subject", "$message" , "From: $email\r\n","Reply-To:
> $email");

I think the manual is confusing on this issue.  The last parameter in the
mail() function must be passed as a single string.  In other words:

$headers = "
From: $memail\r\n
Reply-To: $email\r\n";
// Note the quotes on your parameters are unnecessary.
mail($clubemail, $subject, $message , $headers);

HTH,
Kevin



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to