feat: publish sanitized custom.97 source

This commit is contained in:
cneicy committed 2026-10-27 20:43:39 +08:00
1 parent 8e6ed0317b
commit 86c0276156
1022 files changed
+69903 -19207

No files matched your search

+2 -2
View File
@@ -84,7 +84,7 @@ func SendEmail(subject string, receiver string, content string) error {
return err2
}
if SMTPServer == "" && SMTPAccount == "" {
return fmt.Errorf("SMTP 服务器未配置")
return NewMessage("SMTP server is not configured")
}
encodedSubject := fmt.Sprintf("=?UTF-8?B?%s?=", base64.StdEncoding.EncodeToString([]byte(subject)))
mail := []byte(fmt.Sprintf("To: %s\r\n"+
@@ -130,7 +130,7 @@ func SendEmail(subject string, receiver string, content string) error {
}
err = client.Quit()
if err != nil {
SysError(fmt.Sprintf("failed to send email to %s: %v", receiver, err))
SysError(LogText("failed to send email to %s: %v", receiver, err))
}
return err
}