forked from science-ation/science-ation
Set the return path and bounce-to for emails being sent out
This commit is contained in:
parent
1768fffb2b
commit
ba8c8f91cb
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user