From f762ad220360924eaf933710724411fd29f747a6 Mon Sep 17 00:00:00 2001 From: Peter Sanchez Date: Fri, 17 Dec 2021 16:55:09 -0800 Subject: [PATCH] Bugfix, mail config placed in wrong setting. --- email/send.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 @@ func mailSetup(ctx context.Context) (*smtp.Client, *mail.Address, error) { 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]")) }