Documentation ¶
Overview ¶
Package mail provides a simple util for sending mail.
Index ¶
- type Mail
- func (a *Mail) AddData(name string, r io.Reader) error
- func (a *Mail) AddFile(filename string) error
- func (a *Mail) AddHTML(s string) error
- func (a *Mail) AddText(s string) error
- func (a *Mail) Bcc(bcc ...string) *Mail
- func (a *Mail) Cc(cc ...string) *Mail
- func (a *Mail) From(from string) *Mail
- func (a *Mail) Send(addr string, auth smtp.Auth) error
- func (a *Mail) Subject(subject string) *Mail
- func (a *Mail) To(to ...string) *Mail
- func (a *Mail) WithPart(header textproto.MIMEHeader, f func(io.Writer) error) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.