Skip to content

Commit 50b533f

Browse files
committed
Template should use text/html
Signed-off-by: Vishal Rana <[email protected]>
1 parent 0ede4d8 commit 50b533f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

email/email.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ type (
1515
Auth smtp.Auth
1616
Template *template.Template
1717
smtpAddress string
18-
// TextTemplates text.Template
1918
}
2019

2120
Message struct {
@@ -78,7 +77,7 @@ func (e *Email) Send(m *Message) error {
7877
if err := e.Template.ExecuteTemplate(buf, m.TemplateName, m.TemplateData); err != nil {
7978
return err
8079
}
81-
m.writeText(buf.String(), "text/plain")
80+
m.writeText(buf.String(), "text/html")
8281
} else if m.Text != "" {
8382
m.writeText(m.Text, "text/plain")
8483
} else if m.HTML != "" {

0 commit comments

Comments
 (0)