Documentation ¶
Index ¶
- Constants
- func Address(name, email string) string
- type Header
- type Message
- type MessagePart
- func (z MessagePart) WithBcc(addrs ...string) MessagePart
- func (z MessagePart) WithBodyText(text string) MessagePart
- func (z MessagePart) WithCc(addrs ...string) MessagePart
- func (z MessagePart) WithFrom(addr string) MessagePart
- func (z MessagePart) WithHeader(name, value string) MessagePart
- func (z MessagePart) WithSubject(s string) MessagePart
- func (z MessagePart) WithTo(addrs ...string) MessagePart
- type MessagePartBody
Constants ¶
View Source
const ( HeaderTo = "To" HeaderCc = "Cc" HeaderBcc = "Bcc" HeaderFrom = "From" HeaderSubject = "Subject" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Message ¶
type Message struct {
Payload MessagePart `json:"payload"`
}
type MessagePart ¶
type MessagePart struct { PartId string `json:"partId,omitempty"` MimeType string `json:"mimeType,omitempty"` Filename string `json:"filename,omitempty"` Headers []Header `json:"headers,omitempty"` Body MessagePartBody `json:"body"` }
func (MessagePart) WithBcc ¶
func (z MessagePart) WithBcc(addrs ...string) MessagePart
func (MessagePart) WithBodyText ¶
func (z MessagePart) WithBodyText(text string) MessagePart
func (MessagePart) WithCc ¶
func (z MessagePart) WithCc(addrs ...string) MessagePart
func (MessagePart) WithFrom ¶
func (z MessagePart) WithFrom(addr string) MessagePart
func (MessagePart) WithHeader ¶
func (z MessagePart) WithHeader(name, value string) MessagePart
func (MessagePart) WithSubject ¶
func (z MessagePart) WithSubject(s string) MessagePart
func (MessagePart) WithTo ¶
func (z MessagePart) WithTo(addrs ...string) MessagePart
type MessagePartBody ¶
Click to show internal directories.
Click to hide internal directories.