email

package
v0.0.0-...-a266510 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2017 License: BSD-3-Clause, MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Core

type Core struct{}

Core is the core functionality for sending emails.

func (Core) Enabled

func (c Core) Enabled() bool

Enabled returns whether or not we are configured for email

func (Core) New

func (c Core) New() Email

New creates a new self-contained email that can be sent to a user.

type Email

type Email struct {
	To      []string
	From    string
	Subject string
	Message string
}

Email represents an email that someone wants to send

func (*Email) AddRecipient

func (e *Email) AddRecipient(address string)

AddRecipient appends an email address to the To slice

func (*Email) Send

func (e *Email) Send() error

Send senss an email using smtp credentials provided in the config

Jump to

Keyboard shortcuts

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