Add timeout to mailer send

Signed-off-by: gearnode <bryan@frimin.fr>
This commit is contained in:
gearnode
2025-03-12 14:01:18 +01:00
parent 1a6e68f13c
commit 3762d56173
2 changed files with 62 additions and 1 deletions

View File

@@ -220,6 +220,7 @@ func (impl *Implm) Run(
SenderEmail: impl.cfg.Mailer.SenderEmail,
SenderName: impl.cfg.Mailer.SenderName,
Addr: impl.cfg.Mailer.SMTP.Addr,
Timeout: time.Second * 10,
})
wg.Add(1)
go func() {