beam-community / bamboo

Testable, composable, and adapter based Elixir email library for devs that love piping.
https://hex.pm/packages/bamboo
MIT License
1.91k stars 345 forks source link

Adapter that replaces all recipients with a default list #595

Closed davidlibrera closed 3 years ago

davidlibrera commented 3 years ago

As I proposed in #594, this PR add a new Adapter that is a wrapper around other adapters (i.e SendgridAdapter).

The idea is that on staging or releases environment, when someone send an email to any addresses, it replaces the to addresses with a default list and sets email headers with the original recipients in order to allow debugging before publishing on the production environment.

davidlibrera commented 3 years ago

I close since I can add this behaviour using #591

germsvel commented 3 years ago

Thanks @davidlibrera. It's exciting to see that many people are wanting this same feature. 👍