Documentation ¶ Index ¶ func SendWithMailjet(email *Email) error type Email func NewEmail(to string, subject, body string) *Email func (email *Email) AddBodyUsingTemplate(templateFileName string, data interface{}) type EmailRelay Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func SendWithMailjet ¶ func SendWithMailjet(email *Email) error Sends mail using mailjet API Types ¶ type Email ¶ type Email struct { To string Subject string Body string } Email struct func NewEmail ¶ func NewEmail(to string, subject, body string) *Email Creates a new email func (*Email) AddBodyUsingTemplate ¶ func (email *Email) AddBodyUsingTemplate(templateFileName string, data interface{}) Updates body using a HTML template type EmailRelay ¶ type EmailRelay struct { // Callback function that should perform the email sending process // password. Must return an error on failure. Required. Send func(email *Email) error } Source Files ¶ View all Source files email.go mailjet.go relay.go Click to show internal directories. Click to hide internal directories.