update email encoding
This commit is contained in:
parent
7f9cf4908e
commit
fb02d525d2
4
email.go
4
email.go
@ -60,11 +60,11 @@ func SendMail(addr, from, subject, body string, to []string) error {
|
|||||||
return err
|
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" +
|
"To: " + strings.Join(to, ",") + "\r\n" +
|
||||||
"From: " + from + "\r\n" +
|
"From: " + from + "\r\n" +
|
||||||
"Subject: " + subject + "\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" +
|
"Content-Transfer-Encoding: base64\r\n" +
|
||||||
"\r\n" + base64.StdEncoding.EncodeToString([]byte(body))
|
"\r\n" + base64.StdEncoding.EncodeToString([]byte(body))
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
// Code generated by version.sh (@generated) DO NOT EDIT.
|
// Code generated by version.sh (@generated) DO NOT EDIT.
|
||||||
package main
|
package main
|
||||||
var githash = "a7ee0bf"
|
var githash = "7f9cf49"
|
||||||
var buildstamp = "2022-10-08_02:58:04"
|
var buildstamp = "2022-10-08_03:14:52"
|
||||||
var commits = "53"
|
var commits = "54"
|
||||||
var version = "a7ee0bf-b53 - 2022-10-08_02:58:04"
|
var version = "7f9cf49-b54 - 2022-10-08_03:14:52"
|
||||||
|
Loading…
Reference in New Issue
Block a user