[1038] Sender and return address set to pass spamfilters

This commit is contained in:
Thomas S 2021-04-05 22:58:37 +02:00 committed by Alex Tselegidis
parent a3d6d473fa
commit 5d8d60a20f

View file

@ -322,6 +322,8 @@ class Email {
$mailer->Password = $this->config['smtp_pass']; $mailer->Password = $this->config['smtp_pass'];
$mailer->SMTPSecure = $this->config['smtp_crypto']; $mailer->SMTPSecure = $this->config['smtp_crypto'];
$mailer->Port = $this->config['smtp_port']; $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'); $mailer->IsHTML($this->config['mailtype'] === 'html');