mail

package
v0.0.0-...-291e031 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2016 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Message

type Message interface {
	From() *mail.Address
	ReplyTo() *mail.Address
	To() []*mail.Address
	Cc() []*mail.Address
	Bcc() []*mail.Address
	Subject() string
	Text() string
	HTML() string
}

func NewMessage

func NewMessage(from, to, replyto, cc, bcc, subject, text, html string) Message

type SendGridOptions

type SendGridOptions interface {
	APIKey() string
}

func NewSendGridOptions

func NewSendGridOptions(apiKey string) SendGridOptions

type SendGridSender

type SendGridSender interface {
	Init(SendGridOptions)
	Send(Message) error
}

Jump to

Keyboard shortcuts

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