email

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

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

Go to latest
Published: May 10, 2023 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrDisabled = errors.New("email: sending email has been disabled in the config file")

ErrDisabled is reported when Send is called while email has been disabled

Functions

func Init

func Init()

Init sets up the email package

func Send

func Send(recipient string, user *data.User, templateName string, data map[string]interface{}) error

Send sends the email with the given template name and data to the specified recipient. If recipient is blank, the user's email is used as the recipient.

Types

This section is empty.

Jump to

Keyboard shortcuts

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