diff --git a/email/send.go b/email/send.go index 6171dcf2c292f24c1f30cb6134e1de1ef0e4638a..07b5c6058ff4c6865d32821ea5259b5842c576e6 100644 --- a/email/send.go +++ b/email/send.go @@ -64,7 +64,7 @@ if authtype, ok := conf.Get("mail", "smtp-auth"); ok { switch authtype { case "none", "plain": - mailconf.enctype = authtype + mailconf.authtype = authtype default: panic(fmt.Errorf("Invalid SMTP configuration value for [smtp-auth]")) }