This repository is a collection of different useful middlewares for 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.
- dkim: DKIM (DomainKeys Identified Mail) middleware to sign mail messages
- openpgp: OpenPGP middleware to digitally encrypt and sign mail messages (Experimental/Development on hold)
- subject_capitalize: Capitalizes the subject of the message matching the given language