mirror of
https://github.com/ngoduykhanh/wireguard-ui.git
synced 2026-10-18 13:48:08 +02:00
SMTP: Support disabling encryption (#297)
This commit is contained in:
@@ -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