Documentation ¶
Index ¶
- type Mail
- func (m *Mail) SendHTML() error
- func (m *Mail) SendText() error
- func (m *Mail) SetAttachment(attachments map[string][]byte) *Mail
- func (m *Mail) SetBcc(bcc ...string) *Mail
- func (m *Mail) SetCc(cc ...string) *Mail
- func (m *Mail) SetContent(content string) *Mail
- func (m *Mail) SetFrom(from string) *Mail
- func (m *Mail) SetHost(host string) *Mail
- func (m *Mail) SetKeepAlive(keepAlive time.Duration) *Mail
- func (m *Mail) SetName(name string) *Mail
- func (m *Mail) SetPass(pass string) *Mail
- func (m *Mail) SetPort(port string) *Mail
- func (m *Mail) SetSubject(subject string) *Mail
- func (m *Mail) SetTimeout(timeout time.Duration) *Mail
- func (m *Mail) SetTo(to ...string) *Mail
- func (m *Mail) SetUser(user string) *Mail
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Mail ¶
type Mail struct { From string Name string Host string Port string User string Pass string Subject string Content string To []string Cc []string Bcc []string Attachments map[string][]byte Timeout time.Duration KeepAlive time.Duration }
func (*Mail) SetAttachment ¶
SetAttachment sets the email attachments
func (*Mail) SetContent ¶
SetContent sets the email content
func (*Mail) SetSubject ¶
SetSubject sets the email subject
Click to show internal directories.
Click to hide internal directories.