Merge pull request #1039 from Tthecreator/1038_email_fix

[1038] Sender and return address set to pass spamfilters
This commit is contained in:
Alex Tselegidis 2021-10-18 13:10:15 +02:00 committed by GitHub
commit a0d61449cc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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');