mirror of
https://github.com/swissmakers/wireguard-manager.git
synced 2026-04-21 11:43:20 +02:00
SMTP: Support disabling encryption (#297)
This commit is contained in:
committed by
GitHub
parent
f256668a99
commit
227e51b9cf
@@ -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":
|
||||
|
||||
Reference in New Issue
Block a user