mail

package
v0.0.0-...-8a04328 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2018 License: GPL-3.0, GPL-3.0-only Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func QueueMail

func QueueMail(mail Mail)

QueueMail queues a new mail that should be sent

Types

type Mail

type Mail struct {
	// contains filtered or unexported fields
}

func NewMail

func NewMail(sender, receiver, subject, templateName string, templateData interface{}, mailSendCallback func()) Mail

NewMail creates a new Mail. It currently only supports a single receiver. templateName has to be a valid file within the layout/html directory

func (Mail) ExecuteTemplate

func (m Mail) ExecuteTemplate() string

ExecuteTemplate executes the template and returns it

func (Mail) Send

func (m Mail) Send() error

Send sends the email

Jump to

Keyboard shortcuts

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