Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MakeAttachmentHeader ¶
func MakeAttachmentHeader(filename, encoding string) textproto.MIMEHeader
MakeAttachmentHeader is a helper function that returns a textproto.MIMEHeader tailored for attachments, primarily email. If no encoding is given, base64 is assumed.
Types ¶
type Attachment ¶
type Attachment struct { Name string Header textproto.MIMEHeader Content []byte }
Attachment represents a file or blob attachment that can be sent along with a message by a Messenger.
type Message ¶
type Message struct { From string To []string Subject string ContentType string Body []byte AltBody []byte Headers textproto.MIMEHeader Attachments []Attachment Subscriber models.Subscriber // Campaign is generally the same instance for a large number of subscribers. Campaign *models.Campaign }
Message is the message pushed to a Messenger.
Click to show internal directories.
Click to hide internal directories.