github.com/go-mailx/mailx is a small Go library for sending email via swappable adapters. It provides a common MailerAdapter interface, a functional-options API for composing messages, and a Mailer that ties everything together.
go get github.com/go-mailx/mailxSee the examples directory for working examples with each adapter.
See pkg.go.dev/github.com/go-mailx/mailx for all message options, MailerConfig, and FromAddressFunc built-ins.
| Module | Transport |
|---|---|
github.com/go-mailx/mailx-smtp |
SMTP via go-mail |
github.com/go-mailx/mailx-ses |
AWS SES via aws-sdk-go-v2 |