mirror of
https://github.com/friendica/friendica
synced 2025-04-26 04:30:11 +00:00
If we're going to encode the email headers, we probably should use the encoded version rather than the original
This commit is contained in:
parent
9bb9350126
commit
e394ccd0a8
4 changed files with 15 additions and 14 deletions
|
@ -471,8 +471,8 @@ class enotify {
|
|||
// generate a multipart/alternative message header
|
||||
$messageHeader =
|
||||
$params['additionalMailHeader'] .
|
||||
"From: {$params['fromName']} <{$params['fromEmail']}>\n" .
|
||||
"Reply-To: {$params['fromName']} <{$params['replyTo']}>\n" .
|
||||
"From: $fromName <{$params['fromEmail']}>\n" .
|
||||
"Reply-To: $fromName <{$params['replyTo']}>\n" .
|
||||
"MIME-Version: 1.0\n" .
|
||||
"Content-Type: multipart/alternative; boundary=\"{$mimeBoundary}\"";
|
||||
|
||||
|
@ -493,7 +493,7 @@ class enotify {
|
|||
// send the message
|
||||
$res = mail(
|
||||
$params['toEmail'], // send to address
|
||||
$params['messageSubject'], // subject
|
||||
$messageSubject, // subject
|
||||
$multipartMessageBody, // message body
|
||||
$messageHeader // message headers
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue