SMTP: Support disabling encryption (#297)

This commit is contained in:
Alexander Sulfrian 2023-02-16 17:06:45 +01:00 committed by GitHub
parent f256668a99
commit 227e51b9cf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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":