diff options
author | Joram Wilander <jwawilander@gmail.com> | 2015-08-27 09:46:29 -0400 |
---|---|---|
committer | Joram Wilander <jwawilander@gmail.com> | 2015-08-27 09:46:29 -0400 |
commit | cf1c2ad2cc5d5c24eabc3ebd2bce9f79b2e420fc (patch) | |
tree | 974d3509b9116c621805e704f95c3b1aac2bb6dc | |
parent | 8356e25f80bbba3040ceeda5732b8843b8e493c1 (diff) | |
parent | dce1f1e98810e5a21355c21537e155498f0448c6 (diff) | |
download | chat-cf1c2ad2cc5d5c24eabc3ebd2bce9f79b2e420fc.tar.gz chat-cf1c2ad2cc5d5c24eabc3ebd2bce9f79b2e420fc.tar.bz2 chat-cf1c2ad2cc5d5c24eabc3ebd2bce9f79b2e420fc.zip |
Merge pull request #481 from BastienDurel/master
Add Date header in mail so it will be sorted correctly
-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..7cb178626 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.RFC1123Z) message := "" for k, v := range headers { |