email

package
v0.0.0-...-e606923 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 27, 2017 License: MIT Imports: 4 Imported by: 0

Documentation

Index

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
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL