Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Attachment ¶
Attachment is a Message attachnment backed by a file
type Client ¶
type Client struct { Token string FromAddress string BaseURL *url.URL UserAgent string // contains filtered or unexported fields }
Client is a postmark client
func (*Client) SendMessage ¶
SendMessage sends a postmark message
type Dispatcher ¶
type Dispatcher struct { Client *Client // contains filtered or unexported fields }
Dispatcher is a worker queue
func NewDispatcher ¶
func NewDispatcher(maxworkers int, client *Client) *Dispatcher
NewDispatcher creates a new dispater with workers
type Message ¶
type Message struct { Subject string HTMLBody string TextBody string To []*mail.Address Attachments []*Attachment }
Message is an email message
func (*Message) AddAttachment ¶
AddAttachment is a helper to add a file attachment to an email
Click to show internal directories.
Click to hide internal directories.