From f75f1cdd612d32166f95c03f09b650a6388f5d2c Mon Sep 17 00:00:00 2001 From: Kailash Nadh Date: Mon, 5 Nov 2018 19:44:21 +0530 Subject: [PATCH] Fix hardcoded max_conns SMTP config --- messenger/emailer.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/messenger/emailer.go b/messenger/emailer.go index 98bcbca..cb0dbc4 100644 --- a/messenger/emailer.go +++ b/messenger/emailer.go @@ -46,7 +46,7 @@ func NewEmailer(srv ...Server) (Messenger, error) { auth = smtp.PlainAuth("", s.Username, s.Password, s.Host) } - pool, err := email.NewPool(fmt.Sprintf("%s:%d", s.Host, s.Port), 4, auth) + pool, err := email.NewPool(fmt.Sprintf("%s:%d", s.Host, s.Port), s.MaxConns, auth) if err != nil { return nil, err }