From f4649b9f0e1a2b1e96e295bf1d5556b556410eb4 Mon Sep 17 00:00:00 2001 From: Michael Date: Sat, 27 Mar 2021 21:23:31 +0000 Subject: [PATCH] Issue 4755: Use the system mail address as sender --- src/Module/Invite.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Module/Invite.php b/src/Module/Invite.php index 287478954..be7418bb7 100644 --- a/src/Module/Invite.php +++ b/src/Module/Invite.php @@ -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';