SMTP: Support disabling encryption

This commit is contained in:
Alexander Sulfrian 2023-01-11 20:04:24 +01:00
parent f256668a99
commit 67a41cb060
3 changed files with 4 additions and 2 deletions

View file

@ -33,6 +33,8 @@ func authType(authType string) mail.AuthType {
func encryptionType(encryptionType string) mail.Encryption {
switch strings.ToUpper(encryptionType) {
case "NONE":
return mail.EncryptionNone
case "SSL":
return mail.EncryptionSSL
case "SSLTLS":