Pārlūkot izejas kodu

smtp: replace deprecated method

Signed-off-by: Nicola Murino <[email protected]>
Nicola Murino 1 gadu atpakaļ
vecāks
revīzija
84f3f877a5
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  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.Subject(subject)
 	msg.SetDate()
 	msg.SetDate()
 	msg.SetMessageID()
 	msg.SetMessageID()
-	msg.SetAttachements(attachments)
+	msg.SetAttachments(attachments)
 
 
 	switch contentType {
 	switch contentType {
 	case EmailContentTypeTextPlain:
 	case EmailContentTypeTextPlain: