mailing

package
v0.0.0-...-132a670 Latest Latest
Warning

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

Go to latest
Published: May 2, 2017 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var SendgridRequestFactory *sendgridRequestFactory

Functions

func InitSendgridRequestFactory

func InitSendgridRequestFactory(apiKey string)

func SendHTMLEmail

func SendHTMLEmail(logger logging.Logger, cfg *SendGridConfig, subject, htmlBody string, recipient *nativeMail.Address, substitutions map[string]string) error

Types

type AddressesProvider

type AddressesProvider interface {
	Addresses() []*mail.Address
}

func NewSimpleAddressesProvider

func NewSimpleAddressesProvider(addresses ...*mail.Address) AddressesProvider

type SendGridConfig

type SendGridConfig struct {
	From struct {
		Name  string
		Email string
	}
	TemplateID string
}

func NewSendGridConfig

func NewSendGridConfig(fromName, fromEmail, templateID string) (cfg *SendGridConfig)

Jump to

Keyboard shortcuts

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