谷歌应用引擎文档没有描述如何包含电子邮件标题,你是怎么做的,即你如何改变这个?
msg := &mail.Message{
Sender: "Example.com Support <support@example.com>",
To: []string{"email@bob.com"},
Subject: "Confirm your registration",
Body: fmt.Sprintf(confirmMessage, url),
}
if err := mail.Send(c, msg); err != nil {
c.Errorf("Couldn't send email: %v", err)
}
相关分类