email

package
v0.0.0-...-8083f43 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// Subject line for the email
	Subject = "Confirm your email"

	// CharSet is the character encoding for the email
	CharSet = "UTF-8"

	// TextBody is a plain text copy of HTMLBody
	TextBody = `` /* 314-byte string literal not displayed */

)
View Source
const (
	// HTMLBody is a template of the email used for
	// confirmation of the subscription emails
	HTMLBody = `` /* 10558-byte string literal not displayed */

)

Variables

View Source
var (
	HtmlTemplate *template.Template
	TextTemplate *template.Template
)

Functions

This section is empty.

Types

type SESMailer

type SESMailer struct {
	Sender string
	Secret string
	Svc    *ses.SES
}

SESMailer is an implementation of Mailer interface that works with AWS SES

func (*SESMailer) SendConfirmation

func (sm *SESMailer) SendConfirmation(newsletter, email, name, confirmBaseURL string) error

Jump to

Keyboard shortcuts

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