Versions in this module Expand all Collapse all v0 v0.2.0 Oct 21, 2021 Changes in this version type Message + Recipients []Recipient + func (m *Message) BCC(email string, name string) *Message + func (m *Message) CC(email string, name string) *Message + func (m *Message) WithValue(key string, content interface{}) *Message + func (m *Message) WithValues(vals map[string]interface{}) *Message + type SendOpt func(map[string]interface{}) + func Async(val bool) SendOpt + func IPPool(val string) SendOpt + func SendAt(val string) SendOpt v0.1.0 Oct 21, 2021 Changes in this version + const ClientError + const DateFormat + const ENDPOINT + const MessageInvalid + const MessageQueued + const MessageRejected + const MessageScheduled + const MessageSent + const RejectedCustom + const RejectedHardBounce + const RejectedInvalid + const RejectedInvalidSender + const RejectedModeLimit + const RejectedRule + const RejectedSoftBounce + const RejectedSpam + const RejectedUnsub + const SendBCC + const SendCC + const SendTo + func FormatEmail(m mail.Address) string + func FormatTime(t time.Time) string + type Attachment struct + Content string + Name string + Type string + type Client struct + func NewClient(key string) *Client + func (c *Client) Call(endpoint string, data map[string]interface{}, results interface{}) error + func (p *Client) MessagesSend(msg *Message, async bool, opts map[string]string) ([]SendResult, error) + func (p *Client) MessagesSendTemplate(name string, content []Variable, msg *Message, async bool, ...) ([]SendResult, error) + func (p *Client) Ping() (bool, error) + func (p *Client) TemplatesInfo(name string) (Template, error) + func (p *Client) TemplatesList(label string) ([]Template, error) + func (p *Client) TemplatesRender(name string, content []Variable, vars []Variable) (interface{}, error) + type ErrorResult struct + Code int + Message string + Name string + Status SendStatus + func (e *ErrorResult) Error() string + type MergeLanguage string + const Handlebars + const Mailchimp + type Message struct + Attachments []Attachment + AutoHtml bool + AutoText bool + BCCAddress string + FromEmail string + FromName string + GlobalMergeVars []Variable + GoogleAnalyticsCampaign []string + GoogleAnalyticsDomains []string + Headers map[string]string + Html string + Images []Attachment + Important bool + InlineCSS bool + Merge bool + MergeLanguage MergeLanguage + MergeVars []RcptMergeVars + Metadata []RcptMetadata + PreserveRecipients bool + RecipientMetadata []RcptMetadata + ReturnPathDomain string + SigningDomain string + SubAccount string + Subject string + Tags []string + Text string + To []Recipient + TrackClicks bool + TrackOpens bool + TrackingDomain string + UrlStripQs bool + ViewContentLink bool + func NewMessage() *Message + func (m *Message) AddRecipient(t SendType, r Recipient) *Message + type RcptMergeVars struct + Rcpt string + Vars []Variable + type RcptMetadata struct + Rcpt string + Values map[string]string + type Recipient struct + Email string + MergeVars []Variable + Metadata map[string]string + Name string + Type SendType + type RejectType string + type SendResult struct + Email string + Id string + RejectReason RejectType + Status SendStatus + type SendStatus string + type SendType string + type Template struct + Code string + CreatedAt string + FromEmail string + FromName string + Labels []string + Name string + Publish bool + PublishCode string + PublishFromEmail string + PublishFromName string + PublishSubject string + PublishText string + PublishedAt string + Slug string + Subject string + Text string + UpdatedAt string + type Variable struct + Content interface{} + Name string