Fix email encryption type SSL/TLS

mail.EncryptionTLS is deprecated and is the same like mail.EncryptionSTARTTLS

The correct here is mail.EncryptionSSLTLS
This commit is contained in:
Santiago De la Cruz 2021-04-29 12:53:03 -04:00 committed by GitHub
parent ab02f656be
commit 5ac45b7a4f
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