amazon

package
v1.7.1 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2020 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// S3 Holds the s3 service.
	S3 s3Service

	// SES Holds the ses service.
	SES sesService
)

Functions

func Init added in v1.6.0

func Init(accessKey string, secretKey string, awsRegion string) (err error)

Init configures AWS service to use s3 and ses with same credentials.

Types

type Email added in v1.6.0

type Email struct {
	// From is the source email.
	From string

	// To is a set of destination emails.
	To []string

	// ReplyTo is a set of reply to emails.
	ReplyTo []string

	// Subject is the email subject text.
	Subject string

	// Text is the plain text representation of the body.
	Text string

	// HTML is the HTML representation of the body.
	HTML string
}

Email options.

type EmailTemplate added in v1.6.0

type EmailTemplate struct {
	TemplateName string
	From         string
	To           []string
	TemplateData string
	ReplyTo      []string
}

EmailTemplate contains template the necessary data to send a template based email.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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