mailer

package
v0.0.0-...-d742106 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2015 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMailer

func NewMailer(cfg SmtpConfig) mailerImpl

Types

type Mail

type Mail struct {
	From        string
	To          []string
	Cc          []string
	Bcc         []string
	Subject     string
	Body        string
	Attachments []string
}

type Mailer

type Mailer interface {
	Send(Mail) error
}

type SmtpConfig

type SmtpConfig struct {
	Host     string
	Port     int
	Email    string
	Password string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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