email

package module
v0.4.4 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2026 License: MIT Imports: 1 Imported by: 0

README

gas/email

Test Go Reference Go Version License

Part of the Gas monorepo · Documentation · All modules

Transactional email for the Gas framework, over AWS SES, with optional template rendering through gas.TemplateProvider.

Implements gas.EmailProvider.

go get github.com/gasmod/gas/email
gas.WithSingletonService[gas.EmailProvider](ses.New()),

ses.New() needs gas.TemplateProvider, gas.ConfigProvider and gas.Logger, even if you only ever call Send.

Package Provides
email/ses AWS SES, and LocalStack via a custom endpoint
email/emailtest Recording mock of gas.EmailProvider

Documentation

The full guide, with configuration, testing, and worked examples, is on the docs site. This README is deliberately a signpost: keeping a second copy here is how the docs drifted before.

License

MIT

Documentation

Overview

Package email provides email sending via AWS SES with template integration. Concrete implementations live in the ses sub-package.

See the module README for usage examples and design rationale.

SPDX-License-Identifier: MIT

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrClosed is returned when an operation is attempted on a closed
	// email service.
	ErrClosed = errors.New("email: service is closed")
)

Sentinel errors returned by EmailProvider implementations.

Functions

func IsErrClosed

func IsErrClosed(err error) bool

IsErrClosed checks if the provided error corresponds to the ErrClosed sentinel error.

Types

This section is empty.

Directories

Path Synopsis
Package emailtest provides a mock implementation of gas.EmailProvider for use in tests.
Package emailtest provides a mock implementation of gas.EmailProvider for use in tests.

Jump to

Keyboard shortcuts

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