mirror of
https://github.com/h44z/wg-portal
synced 2025-02-26 05:49:14 +00:00
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:
parent
ab02f656be
commit
5ac45b7a4f
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user