Documentation
¶
Index ¶
- func Send(addr string, auth smtp.Auth, m *Message) error
- type Attachment
- type Header
- type Message
- func (m *Message) AddBcc(address mail.Address) []string
- func (m *Message) AddCc(address mail.Address) []string
- func (m *Message) AddHeader(key string, value string) Header
- func (m *Message) AddTo(address mail.Address) []string
- func (m *Message) Attach(file string) error
- func (m *Message) AttachBuffer(filename string, buf []byte, inline bool) error
- func (m *Message) Bytes() []byte
- func (m *Message) Inline(file string) error
- func (m *Message) Tolist() []string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Attachment ¶
type Message ¶
type Message struct {
From mail.Address
To []string
Cc []string
Bcc []string
ReplyTo string
Subject string
Body string
BodyContentType string
Headers []Header
Attachments map[string]*Attachment
}
func NewHTMLMessage ¶
func NewMessage ¶
func (*Message) AttachBuffer ¶
Click to show internal directories.
Click to hide internal directories.