mailer

package
v4.2.6+incompatible Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2016 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package mailer provides simple abstraction around sending email.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Mailer

type Mailer struct {
	Auth          smtp.Auth
	HostAndPort   string
	From          string
	SubjectPrefix string
}

Mailer is a convenience struct for sending email.

func New

func New(conf *config.EmailConfig) (*Mailer, error)

New returns an instance of Mailer struct.

func (*Mailer) Send

func (m *Mailer) Send(to, subject, body string) error

Send email.

Jump to

Keyboard shortcuts

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