Re: Email always set to server's email, why?
| From: | John Nichel | Date: | Mon, 17 Mar 2003 19:12:27 +0000 |
| Subject: | Re: Email always set to server's email, why? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-140006@lists.php.net to get a copy of this message | ||
Try it this way.....
mail ( "$clubemail", "$subject", "$message", "From: $email\r\n" . "Reply-To: $email\r\n" );
Notice the period (.) between the from and reply-to section, instead of the comma, and the added newline (\r\n) after the reply-to address.
Vernon wrote:
All the email coming from a web site, even though I have set the Reply-To, have the Reply-To set to apache@servername. 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");