email

package
v0.0.0-...-10dc113 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2017 License: MIT, MIT Imports: 6 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
	Template *template.Template
	// contains filtered or unexported fields
}

func New

func New(smtpAddress string) *Email

func (*Email) Send

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

type File

type File struct {
	Name    string
	Type    string
	Content string
}

type Message

type Message struct {
	From         string
	To           string
	CC           string
	Subject      string
	Text         string
	HTML         string
	TemplateName string
	TemplateData interface{}
	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