Skip to content
Snippets Groups Projects
Commit 6cd7e49b authored by Andreas Gohr's avatar Andreas Gohr
Browse files

only use mailfromnobody for bulk mails

parent 368571d8
No related branches found
No related tags found
No related merge requests found
......@@ -554,7 +554,9 @@ class Subscription {
$mail->bcc($subscriber_mail);
$mail->subject($subject);
$mail->setBody($text, $trep, $hrep);
$mail->from($conf['mailfromnobody']);
if(in_array($template, array('subscr_list', 'subscr_digest'))){
$mail->from($conf['mailfromnobody']);
}
if(isset($trep['SUBSCRIBE'])) {
$mail->setHeader('List-Unsubscribe', '<'.$trep['SUBSCRIBE'].'>', false);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment