Merge pull request #16 from xhit/patch-1

Fix email encryption type SSL/TLS
This commit is contained in:
h44z 2021-04-30 11:00:25 +02:00 committed by GitHub
commit 84e5359977
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -61,7 +61,7 @@ func SendEmailWithAttachments(cfg MailConfig, sender, replyTo, subject, body, ht
}
switch cfg.Encryption {
case MailEncryptionTLS:
srv.Encryption = mail.EncryptionTLS
srv.Encryption = mail.EncryptionSSLTLS
case MailEncryptionStartTLS:
srv.Encryption = mail.EncryptionSTARTTLS
default: // MailEncryptionNone