mirror of
https://github.com/ngoduykhanh/wireguard-ui.git
synced 2025-06-07 00:46:58 +03:00
SMTP: Support disabling encryption (#297)
This commit is contained in:
parent
f256668a99
commit
227e51b9cf
3 changed files with 4 additions and 2 deletions
|
@ -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":
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue