mailer

package
v0.0.0-...-ec85eee Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2019 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMailer

func NewMailer(sendgridApiKey string) *sendgridMailer

NewMailer returns initialized mailer

Types

type EmailAddress

type EmailAddress struct {
	Name    string
	Address string
}

EmailAddress represents email address

type Mail

type Mail struct {
	To               string
	Subject          string
	PlainTextContent string
	HtmlContent      string
}

Mail represents email

type Mailer

type Mailer interface {
	SendEmail(m *Mail) error
}

Mailer represents email sender

Jump to

Keyboard shortcuts

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