|
@@ -32,7 +32,7 @@ func (mail *MailClient) SendCustomWarning(subject, content string) (err error) {
|
|
|
|
|
|
func (mail *MailClient) send(e Email) (err error) {
|
|
func (mail *MailClient) send(e Email) (err error) {
|
|
now := time.Now().Format("2006-01-02 15:04:05")
|
|
now := time.Now().Format("2006-01-02 15:04:05")
|
|
- e.Subject = fmt.Sprintf("AppName: %s Title: %s Time: %s", mail.AppName, e.Subject, now)
|
|
|
|
|
|
+ e.Subject = fmt.Sprintf("Title: %s AppName: %s Env: %s Time: %s", e.Subject, mail.AppName, mail.Env, now)
|
|
// 按需要的格式设置邮件内容
|
|
// 按需要的格式设置邮件内容
|
|
message := []byte("From: " + e.From + "\r\n" +
|
|
message := []byte("From: " + e.From + "\r\n" +
|
|
"To: " + e.To + "\r\n" +
|
|
"To: " + e.To + "\r\n" +
|