Documentation ¶
Overview ¶
Package gopostal - Supports Sending Text and HTML based emails. Send email as plain text or html.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Mailer ¶
Mailer represents a mail sender object
func NewGmailMailer ¶
NewGmailMailer is a shortcut constructor for a Mailer with a gmail connection
func NewMailer ¶
NewMailer returns an instance of Mailer with the passed in connnection configuration options
func NewSendGridMailer ¶
NewSendGridMailer is a shortcut constructor for a Mailer with a sendgrid connection
func (*Mailer) NewMessage ¶
NewMessage returns a new Message object build with the to, from, subject, body and html body provided
type Message ¶
type Message struct { From mail.Address To []mail.Address Subject string TextBody string IsText bool HtmlBody string IsHtml bool Headers map[string]string // contains filtered or unexported fields }
Message represents an email message containing the sender to, the from, cc and bcc recipients and all content for the message including text and html body content