Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mahara
mahara
Commits
0389b811
Commit
0389b811
authored
Mar 23, 2009
by
Richard Mansfield
Browse files
Add bulk message header to emails sent from noreply address
parent
c8d2afbb
Changes
1
Hide whitespace changes
Inline
Side-by-side
htdocs/lib/user.php
View file @
0389b811
...
...
@@ -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
"
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment