ses

package module
v1.1.9 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2026 License: MIT Imports: 11 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

mailx-ses

Go Reference

github.com/go-mailx/mailx-ses is an AWS SES adapter for github.com/go-mailx/mailx. It implements the mailx.MailerAdapter interface using the AWS SDK v2 and includes OpenTelemetry instrumentation via otelaws.

Install

go get github.com/go-mailx/mailx-ses

Usage

See the ses example in the main repo.

Inline attachments

The adapter supports inline (embedded) attachments added with mailx.Inline, e.g. an image that the HTML body references as <img src="cid:logo">:

mailer.Send(ctx,
	mailx.Subject("Hello"),
	mailx.To("to@example.com"),
	mailx.HtmlBody(`<img src="cid:logo">`),
	mailx.Inline("logo", "image/png", logo),
)

Mails are sent with the SES v2 SendEmail API, which requires the IAM action ses:SendEmail.

Config

See pkg.go.dev/github.com/go-mailx/mailx-ses for all configuration options.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(config aws.Config) *mailerAdapter

func NewFromContext

func NewFromContext(ctx context.Context) (*mailerAdapter, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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