Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EmailMessage ¶
type EmailOption ¶
type EmailOption struct { TemPath string TemData interface{} ContentType string // text/html or text/plain Secure bool }
EmailOption is used to pass additional options to the email
type GoMailer ¶
type GoMailer interface { // SendMail sends an email using the provided message and options SendMail(message EmailMessage, options EmailOption) error // SendMailWithTemplate sends an email with html template provided SendMailWithTemplate(from string, to []string, subject string, options EmailOption) error }
GoMailer is the interface that wraps the basic SendMail method for sending emails
func New ¶
func New(options GoMailerOption) GoMailer
New returns a new GoMailer instance with the provided options
Click to show internal directories.
Click to hide internal directories.