email

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2017 License: MIT Imports: 9 Imported by: 1

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 `json:"name"`
	Type    string `json:"type"`
	Content string `json:"content"`
}

type Message

type Message struct {
	ID           string      `json:"id"`
	From         string      `json:"from"`
	To           string      `json:"to"`
	CC           string      `json:"cc"`
	Subject      string      `json:"subject"`
	Text         string      `json:"text"`
	HTML         string      `json:"html"`
	TemplateName string      `json:"template_name"`
	TemplateData interface{} `json:"template_data"`
	Inlines      []*File     `json:"inlines"`
	Attachments  []*File     `json:"attachments"`
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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