Set the return path and bounce-to for emails being sent out

This commit is contained in:
james 2010-02-12 18:32:58 +00:00
parent 1768fffb2b
commit ba8c8f91cb

View File

@ -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) {