We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0ede4d8 commit 50b533fCopy full SHA for 50b533f
email/email.go
@@ -15,7 +15,6 @@ type (
15
Auth smtp.Auth
16
Template *template.Template
17
smtpAddress string
18
- // TextTemplates text.Template
19
}
20
21
Message struct {
@@ -78,7 +77,7 @@ func (e *Email) Send(m *Message) error {
78
77
if err := e.Template.ExecuteTemplate(buf, m.TemplateName, m.TemplateData); err != nil {
79
return err
80
81
- m.writeText(buf.String(), "text/plain")
+ m.writeText(buf.String(), "text/html")
82
} else if m.Text != "" {
83
m.writeText(m.Text, "text/plain")
84
} else if m.HTML != "" {
0 commit comments