email

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2026 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EmailProvider

type EmailProvider interface {
	Send(ctx context.Context, msg Message) error
}

EmailProvider sends transactional emails. Implementations: SESProvider (production), NoopProvider (dev/test).

type Message

type Message struct {
	To       string
	Subject  string
	HTMLBody string
	TextBody string
}

Message is a single outbound email.

type NoopProvider

type NoopProvider struct{}

NoopProvider logs emails to stderr. Used in development and tests so the invitation flow can be exercised without an AWS account.

func (*NoopProvider) Send

func (n *NoopProvider) Send(_ context.Context, msg Message) error

type SESProvider

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

SESProvider sends email via AWS SES.

func NewSESProvider

func NewSESProvider(cfg aws.Config, fromAddress string) *SESProvider

NewSESProvider constructs an SESProvider from an AWS config and a verified sender address.

func (*SESProvider) Send

func (s *SESProvider) Send(ctx context.Context, msg Message) error

Jump to

Keyboard shortcuts

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