email

package
v0.0.0-...-8ffd910 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2020 License: MIT Imports: 8 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  `json:"id"`
	From        string  `json:"from"`
	To          string  `json:"to"`
	CC          string  `json:"cc"`
	Subject     string  `json:"subject"`
	BodyText    string  `json:"body_text"`
	BodyHTML    string  `json:"body_html"`
	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