Merge pull request #10089 from annando/issue-4755

Issue 4755: Use the system mail address as sender
This commit is contained in:
Hypolite Petovan 2021-03-27 19:28:08 -04:00 committed by GitHub
commit ed639045fb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -95,8 +95,7 @@ class Invite extends BaseModule
$nmessage = $message;
}
$additional_headers = 'From: ' . $app->user['email'] . "\n"
. 'Sender: ' . DI::emailer()->getSiteEmailAddress() . "\n"
$additional_headers = 'From: "' . $app->user['email'] . '" <' . DI::emailer()->getSiteEmailAddress() . ">\n"
. 'Content-type: text/plain; charset=UTF-8' . "\n"
. 'Content-transfer-encoding: 8bit';