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

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