Exemple #1
0
// 发送邮件
func (j *Job) Send(toEmail string) {
	if strings.Contains(j.task.NotifyContent, "html") {
		email.SendHtmlMail(toEmail, j.task.TaskName, j.task.NotifyContent)
	} else {
		email.SendTextMail(toEmail, j.task.TaskName, j.task.NotifyContent)
	}
}
Exemple #2
0
func (c Tasks) Send() revel.Result {
	email.SendHtmlMail("*****@*****.**", "jajhaja", "<html><h>11111</h></html>")
	return c.RenderJsonSuc()
}