mail

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2018 License: MIT Imports: 6 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SendConfirmEmail

func SendConfirmEmail(ce ConfirmEvent, recipient string)

send confirm email to register user

func SendNotificationEmail

func SendNotificationEmail(e NotificationEvent, recipients []string)

send notification emails to all admin users

func Setup

func Setup()

Types

type ConfirmEvent

type ConfirmEvent struct {
	UserName    string
	ConfirmLink string
}

type MailService

type MailService struct {
	Ch               chan *gomail.Message
	Msg              *gomail.Message
	NotificationTmpl *template.Template
	ConfirmTmpl      *template.Template
}
var Ms MailService

type NotificationEvent

type NotificationEvent struct {
	Level    string
	UserName string
	Who      string
	Action   string
	What     string
	When     string
}

Jump to

Keyboard shortcuts

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