https://github.com/wneessen/go-mail-middleware
A collection of message middlewares for go-mail
https://github.com/wneessen/go-mail-middleware
dkim dkim-signature go go-mail golang golang-library hacktoberfest mail middleware middlewares openpgp
Last synced: 3 months ago
JSON representation
A collection of message middlewares for go-mail
- Host: GitHub
- URL: https://github.com/wneessen/go-mail-middleware
- Owner: wneessen
- License: mit
- Created: 2022-10-02T10:34:42.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2025-06-09T11:53:54.000Z (4 months ago)
- Last Synced: 2025-06-09T12:44:40.110Z (4 months ago)
- Topics: dkim, dkim-signature, go, go-mail, golang, golang-library, hacktoberfest, mail, middleware, middlewares, openpgp
- Language: Go
- Homepage: https://go-mail.dev
- Size: 272 KB
- Stars: 21
- Watchers: 1
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
- Security: SECURITY.md
Awesome Lists containing this project
README
# A collection of message middlewares for go-mail
[](https://pkg.go.dev/github.com/wneessen/go-mail-middleware)
[](https://codecov.io/gh/wneessen/go-mail-middleware)
[](https://goreportcard.com/report/github.com/wneessen/go-mail-middleware)
[](https://discord.gg/dbfQyC4s)
[](https://api.reuse.software/info/github.com/wneessen/go-mail-middleware)### What is this?
This repository is a collection of different useful middlewares for [go-mail](https://github.com/wneessen/go-mail).
Since we want to keep `go-mail` free of third party dependencies and only depend on the Go Standard Library, we
introduce a Middleware concept in version v0.2.8. This allows the user to alter a `mail.Msg` according to their
needs by simple implementing tool that satisfies the `mail.Middleware` interface and provide it to the `mail.Msg`
with the `mail.WithMiddleware()` option. This allows the use of 3rd party libraries with `go-mail` mail messages,
while keeping `go-mail` itself dependancy free.### List of currently supported middlewares
* [dkim](dkim): DKIM (DomainKeys Identified Mail) middleware to sign mail messages
* [openpgp](openpgp): OpenPGP middleware to digitally encrypt and sign mail messages (Experimental/Development on hold)
* [subject_capitalize](subject_capitalize): Capitalizes the subject of the message matching the given language