示例#1
0
文件: job.go 项目: 11101171/whale
// 发送邮件
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)
	}
}
示例#2
0
文件: tasks.go 项目: 11101171/whale
func (c Tasks) Send() revel.Result {
	email.SendHtmlMail("*****@*****.**", "jajhaja", "<html><h>11111</h></html>")
	return c.RenderJsonSuc()
}