Add option to configure SMTP HELO hostname

This commit is contained in:
sxntxn
2020-07-08 05:39:23 +02:00
committed by GitHub
parent 6c4665b3ca
commit 26618f525b
3 changed files with 5 additions and 0 deletions

View File

@@ -23,6 +23,9 @@ class Smtp extends Mail
$transport = Swift_SmtpTransport::newInstance(MAIL_SMTP_HOSTNAME, MAIL_SMTP_PORT);
$transport->setUsername(MAIL_SMTP_USERNAME);
$transport->setPassword(MAIL_SMTP_PASSWORD);
if (!is_null(MAIL_SMTP_HELO_NAME)) {
$transport->setLocalDomain(MAIL_SMTP_HELO_NAME);
}
$transport->setEncryption(MAIL_SMTP_ENCRYPTION);
if (HTTP_VERIFY_SSL_CERTIFICATE === false) {