Project

mailluloid

0.0
No commit activity in last 3 years
No release in over 3 years
Async mailer without any painful setup
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 0
>= 0

Runtime

 Project Readme

Mailluloid

Async mailer without any painful setup

https://github.com/thailehuy/mailluloid

Inspired by one of the gem I saw in the last conference: Celluloid, I made the gem Mailluloid (Mail + Celluloid)

In your Gemfile, include the gem

gem 'mailluloid'

How to use:

  1. Install the gem
  2. ???
  3. Profit!

Then use your mailer as normal. Mailluloid will push all mail sending to background thread, and terminate them after done, so no memory leaks. You now have a non-blocking mailer.

This is useful if you wanna run mailer on Heroku but do not want to pay for a worker just to deliver mail. No more Resque mailer, no more Sidekiq painful setup

Caveats:

  1. All mailers exception are in the child thread, so you can't handle them. (but since you are using a background process for mailer, who care?)
  2. Only works with ActionMailer