mirror of
https://github.com/drakkan/sftpgo.git
synced 2025-12-06 14:20:55 +03:00
smtp: replace deprecated method
Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
This commit is contained in:
@@ -345,7 +345,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:
|
||||||
|
|||||||
Reference in New Issue
Block a user