Fix hardcoded max_conns SMTP config

This commit is contained in:
Kailash Nadh 2018-11-05 19:44:21 +05:30
parent 0f56a5c1a5
commit f75f1cdd61
1 changed files with 1 additions and 1 deletions

View File

@ -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
}