update test message subject
This commit is contained in:
parent
8872e1dcc1
commit
5274657f03
|
@ -181,8 +181,8 @@ func (h *AlertAPI) testChannel(w http.ResponseWriter, req *http.Request, ps http
|
|||
return
|
||||
}
|
||||
ctx := map[string]interface{}{
|
||||
"title": "test title",
|
||||
"message": "test message",
|
||||
"title": "INFINI platform test alert message",
|
||||
"message": "This is just a test email, do not reply!",
|
||||
"rule_id": util.GetUUID(),
|
||||
"rule_name": "test rule",
|
||||
"resource_id": util.GetUUID(),
|
||||
|
|
|
@ -353,7 +353,7 @@ func (h *EmailAPI) testEmailServer(w http.ResponseWriter, req *http.Request, ps
|
|||
message := gomail.NewMessage()
|
||||
message.SetHeader("From", reqBody.Auth.Username)
|
||||
message.SetHeader("To", reqBody.SendTo...)
|
||||
message.SetHeader("Subject", "test email")
|
||||
message.SetHeader("Subject", "INFINI platform test email")
|
||||
|
||||
message.SetBody("text/plain", "This is just a test email, do not reply!")
|
||||
d := gomail.NewDialerWithTimeout(reqBody.Host, reqBody.Port, reqBody.Auth.Username, reqBody.Auth.Password, 3*time.Second)
|
||||
|
|
Loading…
Reference in New Issue