mirror of
https://github.com/absmach/magistrala.git
synced 2026-06-23 04:10:28 +00:00
NOISSUE - Change email body format from plain text to HTML in Send method (#3118)
Signed-off-by: Sammy Oina <sammyoina@gmail.com>
This commit is contained in:
committed by
GitHub
parent
766bb5519a
commit
22616911d2
@@ -100,7 +100,7 @@ func (a *Agent) Send(to []string, from, subject, header, user, content, footer s
|
||||
m.SetHeader("From", e.From)
|
||||
m.SetHeader("To", to...)
|
||||
m.SetHeader("Subject", subject)
|
||||
m.SetBody("text/plain", buff.String())
|
||||
m.SetBody("text/html", buff.String())
|
||||
|
||||
if err := a.dial.DialAndSend(m); err != nil {
|
||||
return errors.Wrap(errSendMail, err)
|
||||
|
||||
Reference in New Issue
Block a user