appses

package
v0.0.0-...-e3f3a3d Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	SourceARN               string
	Source                  string
	RecipientAllowListRegex *regexp.Regexp // a regex that a recipient must match in order to be sent to
}

Config is email configs used only for SES

type Sender

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

Sender is an implementation for sending email with the SES Go SDK It lives in package "email" for now, but can be pulled out and imported if necessary for testing

func NewSender

func NewSender(config Config, environment appconfig.Environment) Sender

NewSender constructs a Sender

func (Sender) Send

func (s Sender) Send(ctx context.Context, emailData email.Email) error

Send sends an email. It will only return an error if there's an error connecting to SES; an invalid address/bounced email will *not* return an error.

Jump to

Keyboard shortcuts

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