email

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: May 6, 2017 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Email

type Email struct {
	Auth     smtp.Auth
	Header   map[string]string
	Template *template.Template
	// contains filtered or unexported fields
}

func New

func New(smtpAddress string) *Email

func (*Email) Send

func (e *Email) Send(m *Message) (err error)

type File

type File struct {
	Name    string
	Type    string
	Content string
}

type Message

type Message struct {
	ID          string
	From        string
	To          string
	CC          string
	Subject     string
	Text        string
	HTML        string
	Inlines     []*File
	Attachments []*File
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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