0.0
No release in over 3 years
Low commit activity in last 3 years
This plugin adds some extensions to the Roda mailer plugin, specifically the ability to log outgoing emails, or to prevent actual delivery.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 2.6
~> 5.0
~> 10.0
~> 2.0

Runtime

< 5.0, >= 2.0
 Project Readme

Roda Mailer Extensions

A few helpful extensions to the Roda mailer plugin.

Installation

Add this line to your application's Gemfile:

gem "roda-mailer_ext"

And then execute:

$ bundle

Or install it yourself as:

$ gem install roda-mailer_ext

Usage

Simply configure this plugin as you would any other plugin. Without any options, the plugin is a no-op. You will want to use the log or prevent_delivery options to make the plugin useful.

I like to pair this plugin with the environments plugin to configure depending on current RACK_ENV.

plugin :environments
plugin :mailer_ext,
  log: (development? or production?),
  prevent_delivery: !production?

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/adam12/roda-mailer_ext.

I love pull requests! If you fork this project and modify it, please ping me to see if your changes can be incorporated back into this project.

That said, if your feature idea is nontrivial, you should probably open an issue to discuss it before attempting a pull request.

License

The gem is available as open source under the terms of the MIT License.