Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Mail ¶
type Mail struct { From string To []string Subject string Body string IsHTML bool // contains filtered or unexported fields }
Mail is a struct of plain text email.
type MailSender ¶
type MailSender struct {
// contains filtered or unexported fields
}
MailSender uses for send plain text emails.
func NewMailSender ¶
func NewMailSender(username, password, server string) *MailSender
NewMailSender is constructor for MailSender.
func (*MailSender) SendToList ¶
func (m *MailSender) SendToList(mail Mail) error
SendToList is send simple plain text email to list recipients.
type QuickSender ¶ added in v0.4.0
type QuickSender struct {
// contains filtered or unexported fields
}
func NewQucikSender ¶ added in v0.4.0
func NewQucikSender(user, password, server, from string, to []string) *QuickSender
func (*QuickSender) Send ¶ added in v0.4.0
func (qs *QuickSender) Send(subject, body string) error
Click to show internal directories.
Click to hide internal directories.