Documentation
¶
Index ¶
Constants ¶
View Source
const ( FAILURE = "FAILURE" DELAY = "DELAY" SUCCESS = "SUCCESS" )
Variables ¶
This section is empty.
Functions ¶
func SendMail ¶
func SendMail(m MailItem, mc MailCredentials) error
SendMail send multiple emails (to,cc, and bcc) to an smtp host.
Types ¶
type MailCredentials ¶
type MailItem ¶
type MailItem struct { // email adress of the account used to send email // (may be the same as the primary email-account) From EmailAddr To []EmailAddr CC []EmailAddr BCC []EmailAddr Attachment []string // full path of files to attach Subject string HTMLBody string TextBody string Priority Priority Language string UserAgent string // DeliveryStatusNotification causes a status email be sent // to the FROM address. DeliveryStatusNotification []string // DispositionNotificationTo is a request for the SMTP server // to send a DSN (Selivery Status Notification) as soon as the recipient opens the email. DispositionNotificationTo string }
Click to show internal directories.
Click to hide internal directories.