wwaws

package
v0.15.0 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultSafeEmailDomains = []string{"weavingwebs.co.uk"}

Functions

func NewAwsConfig

func NewAwsConfig(ctx context.Context, log zerolog.Logger) aws.Config

Types

type Email added in v0.5.5

type Email struct {
	FromLabel string
	To        []string
	Subject   string
	HtmlBody  string
}

type SesMailer added in v0.5.5

type SesMailer struct {
	SafeEmailDomains []string
	// contains filtered or unexported fields
}

func NewSesMailer added in v0.5.5

func NewSesMailer(
	log zerolog.Logger,
	awsConfig aws.Config,
	fromAddress string,
	safeEmailDomains []string,
) *SesMailer

func NewSesMailerFromEnv added in v0.5.5

func NewSesMailerFromEnv(
	log zerolog.Logger,
	awsConfig aws.Config,
) *SesMailer

func (*SesMailer) CheckSendToAddress added in v0.5.5

func (s *SesMailer) CheckSendToAddress(email string) bool

func (*SesMailer) FilterUnsafeEmailsAndWarn added in v0.5.5

func (s *SesMailer) FilterUnsafeEmailsAndWarn(emails []string) []string

func (*SesMailer) Send added in v0.5.5

func (s *SesMailer) Send(ctx context.Context, email Email) error

func (*SesMailer) SendRaw added in v0.5.5

func (s *SesMailer) SendRaw(ctx context.Context, destinations []string, body []byte) error

Jump to

Keyboard shortcuts

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