go-mail-middleware

module
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2022 License: MIT

README

A collection of message middlewares for go-mail

GoDoc codecov Go Report Card REUSE status buy ma a coffee

What is this?

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.

List of currently supported middlewares
  • dkim: DKIM (DomainKeys Identified Mail) middleware to sign mail messages
  • subject_capitalize: Capitalizes the subject of the message matching the given language

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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