summaryrefslogtreecommitdiffstats
path: root/utils/mail.go
diff options
context:
space:
mode:
authorBastien Durel <bastien.durel@data.fr>2015-08-26 16:43:24 +0200
committerBastien Durel <bastien.durel@data.fr>2015-08-26 16:43:24 +0200
commitaf02957c22c1ddde45d7a404601fd3826a1c8eb0 (patch)
tree26371c36420df276658b1ee20357a689474f9a1c /utils/mail.go
parentd653dc18e47c3548c974722ab3b0f4e7645a5b25 (diff)
downloadchat-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.go2
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 {