Documentation ¶
Index ¶
- 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
- type Data
- type EmailContentAnnouncement
- type EmailContentOption
- type From
- type Mail
- type MailDialer
- type MailOption
- type MimeType
- type MultiMailOption
- type NewDialerOptions
- type Product
- type Receipt
- type ResetPasswordModel
- type Tos
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateAnnouncementEmail ¶
func GenerateAnnouncementEmail(option EmailContentAnnouncement) (string, error)
func GenerateReceipt ¶
func GenerateTransactionalEmail ¶
func GenerateTransactionalEmail(option EmailContentOption) (string, error)
func Init ¶
func Init(dialOptions NewDialerOptions)
func ResetPassword ¶
func ResetPassword(opt ResetPasswordModel) (string, error)
Hermes tempalte reset password
func SendByGoMail ¶
func SendMail ¶
func SendMail(message string, mailOpts MailOption) error
func SendMultiMail ¶
func SendMultiMail(message string, mailOpts MultiMailOption) error
Types ¶
type EmailContentOption ¶
type MailDialer ¶
MailDialer may be used if we use our own mail server. Currently we use sendgrid, so this is actually not needed. But we not ditch this code yet since we think we may build our own mail server using postfix later.
type MailOption ¶
type MultiMailOption ¶
type NewDialerOptions ¶
type ResetPasswordModel ¶
Click to show internal directories.
Click to hide internal directories.