smtp: replace deprecated method

Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
This commit is contained in:
Nicola Murino 2024-08-17 09:17:22 +02:00
parent fe6bd8720f
commit 84f3f877a5
No known key found for this signature in database
GPG key ID: 935D2952DEC4EECF

View file

@ -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: