Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EmailInterface ¶
type EmailInterface interface { AddAttachUrl(key, val string) EmailInterface AddInlineUrl(key, val string) EmailInterface SetTitle(title string) EmailInterface SetContent(content string) EmailInterface SetContentType(contentType string) EmailInterface AddEmailAddress(mail []string) EmailInterface AddCcEmailAddress(mail []string) EmailInterface AddBccEmailAddress(mail []string) EmailInterface SetHttpClient(client *http.Client) EmailInterface AddHeader(key, val string) EmailInterface AppointmentTime(t time.Time) EmailInterface Send() (err error) }
func NewEmail ¶
func NewEmail(cf *config.Config) EmailInterface
func NewEmailSmtp ¶
func NewEmailSmtp(conf *MailSmtpConf) EmailInterface
type MailSmtpConf ¶
type MailSmtpConf struct {
User, Password, Host string
}
Click to show internal directories.
Click to hide internal directories.