robin
04-03-2003, 07:20 AM
When I set the Return-Path for an email header in a PHP script, it gets over written by root@server.hostname.com. Here is an example of my headers in the script. I am trying to have bounced emails sent to a particular address.
$fromEmail = "webmaster@501creative.com";
$headers = "From: $fromEmail\n";
$headers .= "Return-Path: <$fromEmail>\n";
$headers .= "Cc: $fromEmail\n";
$headers .= "Bcc: $people_contents\n";
$headers .= "Reply-To: $fromEmail\n";
$headers .= "Content-type: text/plain; charset=iso-8859-1\n";
$headers .= "X-Sender: <$fromEmail>\n";
$headers .= "X-Mailer: $mailerName\n"; //mailer
$headers .= "X-Priority: $priorityLevel\n"; //1 UrgentMessage, 3 Normal
Thanks,
Urban
$fromEmail = "webmaster@501creative.com";
$headers = "From: $fromEmail\n";
$headers .= "Return-Path: <$fromEmail>\n";
$headers .= "Cc: $fromEmail\n";
$headers .= "Bcc: $people_contents\n";
$headers .= "Reply-To: $fromEmail\n";
$headers .= "Content-type: text/plain; charset=iso-8859-1\n";
$headers .= "X-Sender: <$fromEmail>\n";
$headers .= "X-Mailer: $mailerName\n"; //mailer
$headers .= "X-Priority: $priorityLevel\n"; //1 UrgentMessage, 3 Normal
Thanks,
Urban