email

package
v0.0.0-...-263c4a3 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2017 License: LGPL-3.0 Imports: 7 Imported by: 0

Documentation

Overview

Package email manages outgoing email traffic.

It relies on a configuration item in the database, holding the credentials of the sending email account, and the smtp server address and port number.

If the configuration item is missing, a template for it is created in the database. Update it with your account's details, then restart the server to load them.

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNotSentImmediately = errors.New("ErrNotSentImmediately")
)

Functions

func Send

func Send(subject, message string, recipients ...string)

Send sends an email message asynchronously, or enqueues it if it couldn't be sent at once.

func SendSync

func SendSync(subject, message string, recipients ...string) (err error)

SendSync sends an eamil message, or enqueues it if it couldn't be sent at once.

Types

This section is empty.

Jump to

Keyboard shortcuts

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