Sha256: bd670758f9019c4984d82e85c9ed5d78a0c31fa22acc683b523201a14cce9b45
Contents?: true
Size: 1.19 KB
Versions: 1
Compression:
Stored size: 1.19 KB
Contents
QueueClassic Mailer ================== Add to a Rails 3.x project to send email in the background using QueueClassic. This gem was inspired by ResqueMailer, https://github.com/zapnap/resque_mailer **WARNING: USE AT OWN RISK! THIS GEM IS CONSIDERED EXTREME ALPHA!** [![Build Status](https://secure.travis-ci.org/zerobearing2/qc-mailer.png)](http://travis-ci.org/zerobearing2/qc-mailer) Usage ----- Install as gem gem install qc-mailer Add to Gemfile gem "qc-mailer" Include QC::Mailer in your ActionMailer subclass(es) like this: ```ruby class MyMailer < ActionMailer::Base include QC::Mailer end ``` Now, when ```MyMailer.subject_email(params).deliver``` is called, an entry will be created in the job queue. Note that you can still have mail delivered synchronously by using the bang method variant: ```ruby MyMailer.subject_email(params).deliver! ``` If you want to set a different default queue name for your mailer, you can change the default_queue property like so: ```ruby # config/initializers/qc_mailer.rb QC::Mailer.default_queue = 'application_specific_mailer' ``` TODO ---- - TBD Meta ---- Released under the [MIT license](http://www.opensource.org/licenses/mit-license.php).
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
qc-mailer-0.0.1 | README.md |