From af02957c22c1ddde45d7a404601fd3826a1c8eb0 Mon Sep 17 00:00:00 2001 From: Bastien Durel Date: Wed, 26 Aug 2015 16:43:24 +0200 Subject: add date header in mail --- utils/mail.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'utils') diff --git a/utils/mail.go b/utils/mail.go index 783a2de8c..18b9a8591 100644 --- a/utils/mail.go +++ b/utils/mail.go @@ -12,6 +12,7 @@ import ( "net" "net/mail" "net/smtp" + "time" ) func CheckMailSettings() *model.AppError { @@ -101,6 +102,7 @@ func SendMail(to, subject, body string) *model.AppError { headers["Subject"] = html.UnescapeString(subject) headers["MIME-version"] = "1.0" headers["Content-Type"] = "text/html" + headers["Date"] = time.Now().Format(time.RFC822) message := "" for k, v := range headers { -- cgit v1.2.3-1-g7c22