Browse Source

smtp: replace deprecated method

Signed-off-by: Nicola Murino <[email protected]>
Nicola Murino 1 year ago
parent
commit
84f3f877a5
1 changed files with 1 additions and 1 deletions
  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: