emailer

package
v0.0.0-...-c477d60 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2019 License: GPL-3.0 Imports: 11 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Setup

func Setup(cfg datatype.Config)

Types

type EmailerConfig

type EmailerConfig struct {
	// Endpoint is the AWS endpoint to use for requests.
	Endpoint string

	// AccessKeyID is your Amazon AWS access key ID.
	AccessKeyID string

	// SecretAccessKey is your Amazon AWS secret key.
	SecretAccessKey string
	// From is the default from email
	From string
}

EmailerConfig specifies configuration options and credentials for accessing Amazon SES.

var DefaultEmailer EmailerConfig

DefaultEmailer default emailer

func (*EmailerConfig) SendEmail

func (c *EmailerConfig) SendEmail(to, subject, body string) (string, error)

SendEmail sends a plain text email.

func (*EmailerConfig) SendEmailHTML

func (c *EmailerConfig) SendEmailHTML(to, subject, bodyHTML, bodyText string) (string, error)

SendEmailHTML sends a HTML email.

func (*EmailerConfig) SendRawEmail

func (c *EmailerConfig) SendRawEmail(raw []byte) (string, error)

SendRawEmail sends a raw email.

Jump to

Keyboard shortcuts

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