Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MailMessage ¶
type MailMessage struct { From mail.Address To mail.Address Subject string Body string IsHtml bool }
func (*MailMessage) SetFrom ¶
func (m *MailMessage) SetFrom(name, email string)
func (*MailMessage) SetTo ¶
func (m *MailMessage) SetTo(name, email string)
func (*MailMessage) ToHtml ¶
func (m *MailMessage) ToHtml() []byte
func (*MailMessage) ToString ¶
func (m *MailMessage) ToString() string
type MailSender ¶
type MailSender struct { Config SmtpConfig HtmlTemplate string }
func (*MailSender) GetEmailAddress ¶
func (s *MailSender) GetEmailAddress() string
func (*MailSender) Send ¶
func (s *MailSender) Send(message *MailMessage) error
Click to show internal directories.
Click to hide internal directories.