0.0
Repository is archived
No commit activity in last 3 years
No release in over 3 years
There's a lot of open issues
Rails Engine that you can hire to manage your outgoing email
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.3

Runtime

< 5, >= 3.2.12
< 2, >= 1.21
 Project Readme

DeliveryUncle Code Climate Build Status

DeliveryUncle (Rails Engine) that you can hire to manage outgoing email. It provides:

  • Service object to deliver action_mailer's mail message. i.e. DeliveryUncle::Deliver
  • Records of outgoing emails requests in database. i.e. DeliveryUncle::EmailRequest
  • Email sending in background by default (currently with Resque).
  • Views to manage (e.g. block/unblock) outgoing emails.
  • .. etc

Setup

  1. Add delivery_uncle into Gemfile
    gem 'delivery_uncle'

  2. Install migration
    rails generate delivery_uncle:install

  3. Start Resque
    rake environment resque:work QUEUE='*'

Usage

  1. Send email with service object: DeliveryUncle::Deliver
    DeliveryUncle::Deliver.new(AccountMailer, :new_registration, user.email)

  2. Check the email records (e.g. status) with the model: DeliveryUncle::EmailRequest DeliveryUncle::EmailRequest.where(mailer: 'AccountMailer')

  3. Mount views to your rails app in config/routes.rb
    mount DeliveryUncle::Engine => "/mails"

Changes

v0.1.2

  • Save email request
  • Send email in background
  • Block/unblock/pause/retry outgoing emails in views

v0.1.3

  • Remove record manipulation after enqueuing to background

License

This project rocks and uses MIT-LICENSE.