Hi,
I am writing a PHP script in which I would like the replies to come to an alternate address.
The header section of my PHP is:
Code:
$headers = "MIME-Version: 1.0 \r\n";
$headers .= "From: \"Jobs@mydomain.com\" <jobs@mydomain.com>\r\n";
$headers .= "Reply-To: <webmaster@mydomain.com>\r\n";
$headers .= "Errors-To: <webmaster@mydomain.com>\r\n";
$headers .= "Return-Path: <webmaster@mydomain.com>\r\n";
$headers .= "Date: ".date("r")."\r\n";
$headers .= "Content-Type: text/html; charset=ISO-8859-1\r\n";
$headers .= "Content-Transfer-Encoding: 8bit\r\n";
$sHead = "-fwebmaster@mydomain.com";
mail ("vaibhav@gmail.com", $sub, $msg, $headers, $sHead);
But this is not working. When I send an email to my GMail account and hit REPLY, the email address showing in the To: is my own gmail address.
I need the To address to be
donoreply@mydomain.com.
Pls help what am I missing ?
Thx
Vai