Skip to content

Commit

Permalink
Fix fmt error in mailer (#2490)
Browse files Browse the repository at this point in the history
  • Loading branch information
cez81 authored and lunny committed Sep 12, 2017
1 parent 01d7189 commit eab4579
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/mailer/mailer.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ func NewMessageFrom(to []string, from, subject, body string) *Message {

plainBody, err := html2text.FromString(body)
if err != nil || setting.MailService.SendAsPlainText {
if strings.Contains(base.TruncateString(body, 100), "<html>"){
if strings.Contains(base.TruncateString(body, 100), "<html>") {
log.Warn("Mail contains HTML but configured to send as plain text.")
}
msg.SetBody("text/plain", plainBody)
Expand Down

0 comments on commit eab4579

Please sign in to comment.