mail

package
v1.13.0 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2018 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Events

type Events struct {
	// contains filtered or unexported fields
}

func (*Events) Send

func (e *Events) Send(message string)

type Logger

type Logger interface {
	Error(i ...interface{})
	Errorf(format string, args ...interface{})
}

type Mailer

type Mailer interface {
	Events(subject string, recipients []string) *Events
}

func New

func New(opts Options) (Mailer, error)

type Options

type Options struct {
	APIKey            string
	Logger            Logger
	Recipients        []string
	FromEmail         string
	FromName          string
	SendUniqTimeout   time.Duration
	RetryErrorTimeout time.Duration
}

Jump to

Keyboard shortcuts

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