From ba8c8f91cb135b1429c36e6426f92efc70d573e8 Mon Sep 17 00:00:00 2001 From: james Date: Fri, 12 Feb 2010 18:32:58 +0000 Subject: [PATCH] Set the return path and bounce-to for emails being sent out --- common.inc.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/common.inc.php b/common.inc.php index 09effcc..73f1acf 100644 --- a/common.inc.php +++ b/common.inc.php @@ -974,6 +974,8 @@ function email_send_new($to,$from,$subject,$body,$bodyhtml="") { $mail->setFrom($from); $mail->setSubject($subject); $mail->setText($body); + $mail->setHeader("Bounce-To",$from); + $mail->setReturnPath($from); //only add the html if we have it if($bodyhtml) {