Commit 0389b811 authored by Richard Mansfield's avatar Richard Mansfield
Browse files

Add bulk message header to emails sent from noreply address

parent c8d2afbb
......@@ -316,6 +316,7 @@ function email_user($userto, $userfrom, $subject, $messagetext, $messagehtml='',
$mail->Sender = get_config('noreplyaddress');
$mail->From = $mail->Sender;
$mail->FromName = get_string('emailname');
$customheaders[] = 'Precedence: Bulk'; // Try to avoid pesky out of office responses
$messagetext .= "\n\n" . get_string('pleasedonotreplytothismessage') . "\n";
if ($messagehtml) {
$messagehtml .= "\n\n<p>" . get_string('pleasedonotreplytothismessage') . "</p>\n";
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment