1
0

feat: add logging options to mailer settings

This commit is contained in:
kolaente
2023-03-24 20:35:12 +01:00
committed by konrad
parent 7987efcefc
commit 9590b82c11
5 changed files with 102 additions and 0 deletions

View File

@ -56,6 +56,8 @@ func getClient() (*mail.Client, error) {
ServerName: config.MailerHost.GetString(),
}),
mail.WithTimeout((config.MailerQueueTimeout.GetDuration() + 3) * time.Second), // 3s more for us to close before mail server timeout
mail.WithLogger(log.NewMailLogger()),
mail.WithDebugLog(),
}
if config.MailerForceSSL.GetBool() {