Skip to content

go-mailx/mailx

Repository files navigation

mailx

Go Reference

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.

Install

go get github.com/go-mailx/mailx

Usage

See the examples directory for working examples with each adapter.

API

See pkg.go.dev/github.com/go-mailx/mailx for all message options, MailerConfig, and FromAddressFunc built-ins.

Adapters

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

About

A small Go library for sending email via swappable adapters

Topics

Resources

License

Stars

Watchers

Forks

Contributors

Languages