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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user