1
0
mirror of https://github.com/muety/wakapi.git synced 2023-08-10 21:12:56 +03:00

fix: include missing mail headers (resolve #472)

This commit is contained in:
Ferdinand Mütsch
2023-03-06 20:31:31 +01:00
parent ce077f2efc
commit fde45a5138
3 changed files with 42 additions and 6 deletions

View File

@@ -26,6 +26,8 @@ func NewSMTPSendingService(config conf.SMTPMailConfig) *SMTPSendingService {
}
func (s *SMTPSendingService) Send(mail *models.Mail) error {
mail = mail.Sanitized()
dial := smtp.Dial
if s.config.TLS {
dial = func(addr string) (*smtp.Client, error) {