mail

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2015 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ErrNoTemplate = errors.Err("no template for this type")
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Mail

type Mail struct {
	From    string
	To      []string
	Subject string

	Type string
	Data interface{}

	RawContent string
}

type Mailer

type Mailer struct {
	PrintMail bool

	Templates map[string]mailTemplate
	// contains filtered or unexported fields
}

func NewMailer

func NewMailer(username, password, addr string) *Mailer

func (*Mailer) AddTemplateFile

func (m *Mailer) AddTemplateFile(typ, filename, subject string) error

func (*Mailer) Send

func (m *Mailer) Send(mail *Mail) (err error)

Jump to

Keyboard shortcuts

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