I use a shared hosting environment and manage a number of mail lists. We send mail from a client but depend on bounced emails being returned to our email account. This was working fine before they restricted the use of the fifth parameter on the mail method (-f). I have tried to acheive the same result with headers:
$headers = "MIME-Version: 1.0\r\nContent-type: text/html; charset=iso-8859-1\r\nFrom:$from_addr\r\n";
$headers .= "Reply-To:admin@servername.com\r\n";
$headers .= "X-Sender:admin@servername.com\r\n";
$headers .= "X-Mailer😛HP4\r\n"; //mailer
$headers .= "X-Priority:3\n"; //1 UrgentMessage, 3 Normal
$headers .= "Return-Path:admin@servername.com\r\n";
if i mail to a bogus email address, the bounced mail somes back to my send_from setting (in my development environment - in my shared hosting environment, send_from is set to me@localhost.com (i haven't seen any bounced mail returned to that address so I have no idea where they are going).
Any insights out there - any help would be greatly appreciated,
ron