Kaynağa Gözat

smtp: replace deprecated method

Signed-off-by: Nicola Murino <[email protected]>
Nicola Murino 1 yıl önce
ebeveyn
işleme
84f3f877a5
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  1. 1 1
      internal/smtp/smtp.go

+ 1 - 1
internal/smtp/smtp.go

@@ -346,7 +346,7 @@ func (c *Config) getSMTPClientAndMsg(to, bcc []string, subject, body string, con
 	msg.Subject(subject)
 	msg.SetDate()
 	msg.SetMessageID()
-	msg.SetAttachements(attachments)
+	msg.SetAttachments(attachments)
 
 	switch contentType {
 	case EmailContentTypeTextPlain: