appses

package
v0.0.0-...-b3f093e Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: Apache-2.0 Imports: 7 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
}

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) Sender

NewSender constructs a Sender

func (Sender) Send

func (s Sender) Send(
	ctx context.Context,
	toAddresses []models.EmailAddress,
	ccAddresses []models.EmailAddress,
	subject string,
	body string,
) 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