Versions in this module Expand all Collapse all v0 v0.9.1 Mar 2, 2014 v0.9.0 Feb 26, 2014 Changes in this version + var NewLine string = "\r\n" + func Send(c *smtp.Client, message *Message) (err error) + func Transport(address string, port int, host string, a smtp.Auth) (*smtp.Client, error) + type MailSender interface + SendMessage func(messages ...*Message) (err error) + type Mailer struct + Auth smtp.Auth + Host string + Password string + Port int + Sender *Sender + Server string + UserName string + func (m *Mailer) SendMessage(messages ...*Message) (err error) + type Message struct + Bcc []string + Cc []string + Date time.Time + From string + HtmlBody *bytes.Buffer + MessageId string + PlainBody *bytes.Buffer + ReplyTo string + Subject string + To []string + func NewHtmlMessage(to []string, subject string, body string) *Message + func NewTextAndHtmlMessage(to []string, subject string, plainBody string, htmlBody string) *Message + func NewTextMessage(to []string, subject string, body string) *Message + func (m *Message) RenderData() (data []byte, err error) + func (m *Message) RenderTemplate(templatePath string, args map[string]interface{}) error + type Sender struct + From string + ReplyTo string