switch to another email lib to support more AUTH types

This commit is contained in:
Christoph Haas
2021-04-29 16:45:28 +02:00
parent 7b1f59d86a
commit 19e6fa2a1a
5 changed files with 80 additions and 53 deletions

View File

@@ -114,6 +114,7 @@ func NewConfig() *Config {
cfg.Email.Host = "127.0.0.1"
cfg.Email.Port = 25
cfg.Email.Encryption = common.MailEncryptionNone
cfg.Email.AuthType = common.MailAuthPlain
// Load config from file and environment
cfgFile, ok := os.LookupEnv("CONFIG_FILE")