diff options
author | Bastien Durel <bastien.durel@data.fr> | 2015-08-26 16:43:24 +0200 |
---|---|---|
committer | Bastien Durel <bastien.durel@data.fr> | 2015-08-26 16:43:24 +0200 |
commit | af02957c22c1ddde45d7a404601fd3826a1c8eb0 (patch) | |
tree | 26371c36420df276658b1ee20357a689474f9a1c /utils/mail.go | |
parent | d653dc18e47c3548c974722ab3b0f4e7645a5b25 (diff) | |
download | chat-af02957c22c1ddde45d7a404601fd3826a1c8eb0.tar.gz chat-af02957c22c1ddde45d7a404601fd3826a1c8eb0.tar.bz2 chat-af02957c22c1ddde45d7a404601fd3826a1c8eb0.zip |
add date header in mail
Diffstat (limited to 'utils/mail.go')
-rw-r--r-- | utils/mail.go | 2 |
1 files changed, 2 insertions, 0 deletions
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 { |