Example #1
0
func (mm *mimeMessage) addValues(p *simplehttp.FormDataPayload) {
	p.AddReadCloser("message", "message.mime", mm.body)
}
Example #2
0
func (pm *plainMessage) addValues(p *simplehttp.FormDataPayload) {
	p.AddValue("from", pm.from)
	p.AddValue("subject", pm.subject)
	p.AddValue("text", pm.text)
	for _, cc := range pm.cc {
		p.AddValue("cc", cc)
	}
	for _, bcc := range pm.bcc {
		p.AddValue("bcc", bcc)
	}
	if pm.html != "" {
		p.AddValue("html", pm.html)
	}
}