From 5d8d60a20f44ce5c43eaf4dce23b492d46bcd99d Mon Sep 17 00:00:00 2001 From: Thomas S Date: Mon, 5 Apr 2021 22:58:37 +0200 Subject: [PATCH] [1038] Sender and return address set to pass spamfilters --- engine/Notifications/Email.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/engine/Notifications/Email.php b/engine/Notifications/Email.php index 24617230..0612f46c 100755 --- a/engine/Notifications/Email.php +++ b/engine/Notifications/Email.php @@ -322,6 +322,8 @@ class Email { $mailer->Password = $this->config['smtp_pass']; $mailer->SMTPSecure = $this->config['smtp_crypto']; $mailer->Port = $this->config['smtp_port']; + $mailer->Sender = $settings['company_email']; + $mailer->SetFrom($settings['company_email'], $settings['company_name'], FALSE); } $mailer->IsHTML($this->config['mailtype'] === 'html');