Documentation ¶
Index ¶
- type Mail
- func (m *Mail) AttachFile(filename string) *Mail
- func (m *Mail) Bcc(bcc ...string) *Mail
- func (m *Mail) Cc(cc ...string) *Mail
- func (m *Mail) From(from string) *Mail
- func (m *Mail) HTML(html string) *Mail
- func (m *Mail) Headers(headers textproto.MIMEHeader) *Mail
- func (m *Mail) ReplyTo(replyTo []string) *Mail
- func (m *Mail) Send() error
- func (m *Mail) SendNow() error
- func (m *Mail) Sender(sender string) *Mail
- func (m *Mail) Subject(subject string) *Mail
- func (m *Mail) Text(text string) *Mail
- func (m *Mail) To(to ...string) *Mail
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Mail ¶
Mail exposes the Mail type.
func (*Mail) AttachFile ¶
AttachFile attaches a file to the mail.
func (*Mail) From ¶
From determines who the message is from (There is already a default value provided in the config here).
func (*Mail) Headers ¶
func (m *Mail) Headers(headers textproto.MIMEHeader) *Mail
Headers determine the message headers.
Click to show internal directories.
Click to hide internal directories.