Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Attachment ¶
type Attachment struct { Filename string `json:"filename"` ContentType string `json:"contentType"` Data io.Reader `json:"-"` }
Attachment with filename, content type and data (as a io.Reader)
type Email ¶
type Email struct { Header mail.Header `json:"header"` Subject string `json:"subject"` Sender *mail.Address `json:"sender"` From []*mail.Address `json:"from"` ReplyTo []*mail.Address `json:"replyTo"` To []*mail.Address `json:"to"` Cc []*mail.Address `json:"cc"` Bcc []*mail.Address `json:"bcc"` Date time.Time `json:"date"` MessageID string `json:"messageID"` InReplyTo []string `json:"inReplyTo"` References []string `json:"references"` ResentFrom []*mail.Address `json:"resentFrom"` ResentSender *mail.Address `json:"resentSender"` ResentTo []*mail.Address `json:"resentTo"` ResentDate time.Time `json:"resentDate"` ResentCc []*mail.Address `json:"resentCc"` ResentBcc []*mail.Address `json:"resentBcc"` ResentMessageID string `json:"resentMessageID"` ContentType string `json:"contentType"` Content io.Reader `json:"-"` HTMLBody string `json:"hTMLBody"` TextBody string `json:"textBody"` Attachments []Attachment `json:"attachments"` EmbeddedFiles []EmbeddedFile `json:"embeddedFiles"` }
Email with fields for all the headers defined in RFC5322 with it's attachments and
Click to show internal directories.
Click to hide internal directories.