Merge pull request #481 from BastienDurel/master

Add Date header in mail so it will be sorted correctly
Этот коммит содержится в:
Joram Wilander
2015-08-27 09:46:29 -04:00
родитель 8356e25f80 dce1f1e988
Коммит cf1c2ad2cc

Просмотреть файл

@@ -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 {