Этот коммит содержится в:
Bastien Durel
2015-08-26 16:43:24 +02:00
родитель d653dc18e4
Коммит af02957c22

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

@@ -12,6 +12,7 @@ import (
"net" "net"
"net/mail" "net/mail"
"net/smtp" "net/smtp"
"time"
) )
func CheckMailSettings() *model.AppError { func CheckMailSettings() *model.AppError {
@@ -101,6 +102,7 @@ func SendMail(to, subject, body string) *model.AppError {
headers["Subject"] = html.UnescapeString(subject) headers["Subject"] = html.UnescapeString(subject)
headers["MIME-version"] = "1.0" headers["MIME-version"] = "1.0"
headers["Content-Type"] = "text/html" headers["Content-Type"] = "text/html"
headers["Date"] = time.Now().Format(time.RFC822)
message := "" message := ""
for k, v := range headers { for k, v := range headers {