From d8e4978b616515faabd1efcdf50836e3f601b1e9 Mon Sep 17 00:00:00 2001 From: Nicola Murino Date: Sat, 17 Aug 2024 09:17:22 +0200 Subject: [PATCH] smtp: replace deprecated method Signed-off-by: Nicola Murino --- internal/smtp/smtp.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/smtp/smtp.go b/internal/smtp/smtp.go index 56de459e..94984249 100644 --- a/internal/smtp/smtp.go +++ b/internal/smtp/smtp.go @@ -345,7 +345,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: