stop the service properly and update doc

This commit is contained in:
2022-10-16 10:35:59 +00:00
parent 42b36a9234
commit 8b0af491c0
4 changed files with 35 additions and 11 deletions
+2 -2
View File
@@ -40,10 +40,10 @@ func FromJSON(path string) (Email, error) {
func (e Email) Generate() []byte {
mail := fmt.Sprintf(
"To: %s\nFrom: %s\nContent-Type: text/html\nSubject: %s\n\n%s",
"To: %s\nFrom: %s\nContent-Type: text/html;charset=utf-8\nSubject: %s\n\n%s",
strings.Join(e.Receivers, ","),
e.Sender,
e.Sender,
e.Subject,
e.Content,
)
return []byte(mail)