Fix hardcoded max_conns SMTP config
This commit is contained in:
parent
0f56a5c1a5
commit
f75f1cdd61
|
@ -46,7 +46,7 @@ func NewEmailer(srv ...Server) (Messenger, error) {
|
||||||
auth = smtp.PlainAuth("", s.Username, s.Password, s.Host)
|
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 {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue