Versions in this module Expand all Collapse all v1 v1.0.0 Apr 22, 2020 Changes in this version + func GenerateAnnouncementEmail(option EmailContentAnnouncement) (string, error) + func GenerateReceipt(option Receipt) (string, error) + func GenerateTransactionalEmail(option EmailContentOption) (string, error) + func Init(dialOptions NewDialerOptions) + func ResetPassword(opt ResetPasswordModel) (string, error) + func SendByGoMail(mail Mail) error + func SendMail(message string, mailOpts MailOption) error + func SendMultiMail(message string, mailOpts MultiMailOption) error + type Button struct + Color string + Link string + Text string + TextColor string + type Data struct + Key string + Value string + type EmailContentAnnouncement struct + Greeting string + Intros []string + MimeType MimeType + Organization string + Signature string + type EmailContentOption struct + Button Button + ClientName string + DataTable [][]Data + Instruction string + Intros []string + Message string + MimeType MimeType + Outros []string + Product Product + type From struct + Email string + Name string + type Mail struct + From string + Message string + Subject string + To string + type MailDialer struct + Host string + Password string + Port int + Username string + type MailOption struct + Attachment string + BodyMimeType MimeType + Cc string + Dialer MailDialer + From string + SenderName string + Subject string + To string + type MimeType string + const MimeTypeHTML + type MultiMailOption struct + BodyMimeType MimeType + Cc []*mail.Email + Subject string + To []*mail.Email + type NewDialerOptions struct + Auth smtp.Auth + Host string + LocalName string + OptioSendGridAPIKeyns string + Password string + Port int + SSL bool + Sender string + SenderName string + TLSConfig *tls.Config + Username string + type Product struct + Link string + Logo string + Name string + type Receipt struct + ActionIntro string + ButtonLink string + ButtonText string + CustomerName string + Greeting string + Intros []string + MimeType MimeType + Organization string + Signature string + TableData [][]hermes.Entry + URL string + type ResetPasswordModel struct + Email hermes.Email + Hermes hermes.Hermes + MimeType MimeType + type Tos struct + To []From + func (t *Tos) GenerateMail() []*mail.Email