Documentation
¶
Index ¶
- func Send(m *Mail) (err error)
- type Attachment
- type Header
- type Mail
- type Message
- func (m *Message) AddBcc(address *mail.Address) []*mail.Address
- func (m *Message) AddCc(address *mail.Address) []*mail.Address
- func (m *Message) AddHeader(key string, value string) Header
- func (m *Message) AddTo(address *mail.Address) []*mail.Address
- func (m *Message) Attach(file string) error
- func (m *Message) AttachBuffer(filename string, buf []byte, inline bool) error
- func (m *Message) Inline(file string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Attachment ¶
Attachment represents an email attachment.
type Message ¶
type Message struct { To []*mail.Address Cc []*mail.Address Bcc []*mail.Address ReplyTo string Subject string Body string BodyType string Headers []Header Attachments map[string]*Attachment }
Message represents a smtp message.
func HTMLMessage ¶
HTMLMessage returns a new Message that can compose an HTML email with attachments
func TextMessage ¶
TextMessage returns a new Message that can compose an email with attachments
func (*Message) AttachBuffer ¶
AttachBuffer attaches a binary attachment.
Click to show internal directories.
Click to hide internal directories.