diff --git a/internal/notification/messages/email.go b/internal/notification/messages/email.go index cd3f362f82..54b5aae22c 100644 --- a/internal/notification/messages/email.go +++ b/internal/notification/messages/email.go @@ -51,9 +51,9 @@ func (msg *Email) GetContent() (string, error) { } //default mime-type is html - mime := "MIME-version: 1.0;" + lineBreak + "Content-Type: text/html; charset=\"UTF-8\";" + lineBreak + lineBreak + mime := "MIME-Version: 1.0" + lineBreak + "Content-Type: text/html; charset=\"UTF-8\"" + lineBreak + lineBreak if !isHTML(msg.Content) { - mime = "MIME-version: 1.0;" + lineBreak + "Content-Type: text/plain; charset=\"UTF-8\";" + lineBreak + lineBreak + mime = "MIME-Version: 1.0" + lineBreak + "Content-Type: text/plain; charset=\"UTF-8\"" + lineBreak + lineBreak } subject := "Subject: " + bEncodeSubject(msg.Subject) + lineBreak message += subject + mime + lineBreak + msg.Content