Issue 4755: Use the system mail address as sender
authorMichael <heluecht@pirati.ca>
Sat, 27 Mar 2021 21:23:31 +0000 (21:23 +0000)
committerMichael <heluecht@pirati.ca>
Sat, 27 Mar 2021 21:23:31 +0000 (21:23 +0000)
src/Module/Invite.php

index 2874789..be7418b 100644 (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';