update email encoding

This commit is contained in:
shoopea 2022-10-08 11:15:09 +08:00
parent 7f9cf4908e
commit fb02d525d2
2 changed files with 6 additions and 6 deletions

View File

@ -60,11 +60,11 @@ func SendMail(addr, from, subject, body string, to []string) error {
return err
}
msg := "Date:" + time.Now().Format("Mon, 02 Jan 2006 15:04:05 -0700") + "\r\n" +
msg := "Date: " + time.Now().Format("Mon, 02 Jan 2006 15:04:05 -0700") + "\r\n" +
"To: " + strings.Join(to, ",") + "\r\n" +
"From: " + from + "\r\n" +
"Subject: " + subject + "\r\n" +
"Content-Type: text/html; charset=\"UTF-8\"\r\n" +
"Content-Type: text/plain; charset=\"UTF-8\"\r\n" +
"Content-Transfer-Encoding: base64\r\n" +
"\r\n" + base64.StdEncoding.EncodeToString([]byte(body))

View File

@ -1,6 +1,6 @@
// Code generated by version.sh (@generated) DO NOT EDIT.
package main
var githash = "a7ee0bf"
var buildstamp = "2022-10-08_02:58:04"
var commits = "53"
var version = "a7ee0bf-b53 - 2022-10-08_02:58:04"
var githash = "7f9cf49"
var buildstamp = "2022-10-08_03:14:52"
var commits = "54"
var version = "7f9cf49-b54 - 2022-10-08_03:14:52"