Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Attachment ¶
type Attachment struct {
// Content is the binary content of the attachment to use when a Path
// is not available.
Content []byte `json:"content"`
// Filename that will appear in the email.
// Make sure you pick the correct extension otherwise preview
// may not work as expected
Filename string `json:"filename"`
// Path where the attachment file is hosted instead of providing the
// content directly.
Path string `json:"path"`
// Content type for the attachment, if not set will be derived from
// the filename property
ContentType string `json:"contentType"`
}
Attachment is the public struct used for adding attachments to emails
type Message ¶
type Message struct {
From string `json:"from"`
To []string `json:"to"`
Subject string `json:"subject"`
Bcc []string `json:"bcc,omitempty"`
Cc []string `json:"cc,omitempty"`
ReplyTo string `json:"reply_to,omitempty"`
Html string `json:"html,omitempty"`
Text string `json:"text,omitempty"`
Tags []Tag `json:"tags,omitempty"`
Attachments []*Attachment `json:"attachments,omitempty"`
Headers map[string]string `json:"headers,omitempty"`
}
Message represents email message.
Click to show internal directories.
Click to hide internal directories.