I'm attempting to have bounced emails go to another email address, however, they are being sent to the email being sent from. This is what I've done (at the bottom of test_smtp.php:
array(
"From: Myreturnemailaddress",
"Reply-To: Myreturnemailaddress",
"Return-Path: Myreturnemailaddress",
"To: $to",
"Subject: TEST",
"Date: ".strftime("%a, %d %b %Y %H:%M:%S %Z")
),
Bounced messages are still being sent to the original SMTP provider email address that I've sent the email from. Can you suggest how I can change this? This can be done (and works) with the traditional PHP Mail Function:
mail("
[email protected]", "subject", "body of message", "From:
[email protected]", "
[email protected]");
The part of the code that does this is "
[email protected]".
Any help would be appreciated.