Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Mail ¶
type Mail struct { Subject string To string Cc []string Bcc []string From string Error error Tpl *template.Template TplData interface{} }
Mail represents an email to be sent
type Mailer ¶
type Mailer struct { *mail.SMTPClient Defaults Defaults }
Mailer is the struct used to send mail, can only be used once connected to mailer
func (*Mailer) CheckSendable ¶
CheckSendable verifies that the email can be sent
type MailerInit ¶
type MailerInit struct { SMTPServer mail.SMTPServer Defaults Defaults }
MailerInit is the config store for the mailer, can be initialised once then connected multiple times
func (*MailerInit) ConnectMailer ¶
func (m *MailerInit) ConnectMailer() *Mailer
ConnectMailer connects to the mail server
Click to show internal directories.
Click to hide internal directories.