yoemail

package
v0.0.0-...-df506b3 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrConfigNotSet = errors.New("config not set, call email.Config() to set")
)

Functions

func GetEmailBody

func GetEmailBody(email *yodata.Email) (string, error)

This function will grab a canned response email body using the yodata.Email.Type

func SetConfig

func SetConfig(c *yoconfig.Config)

Types

type EmailClient

type EmailClient interface {
	Init() error
	SendEmails() error
}

Main email client interface, any email driver must implement

func NewClient

func NewClient() (EmailClient, error)

type ErrClientNotFound

type ErrClientNotFound struct {
	Client string
}

Custom error type used by NewClient function

func (*ErrClientNotFound) Error

func (e *ErrClientNotFound) Error() string

type MailGun

type MailGun struct {
	// contains filtered or unexported fields
}

func (*MailGun) Init

func (mg *MailGun) Init() error

func (*MailGun) SendEmails

func (mg *MailGun) SendEmails() error

Jump to

Keyboard shortcuts

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