public
Fork of adzap/ar_mailer
Description: fork of ar_mailer gem by Eric Hodel that allows deferred batch sending of emails for Rails apps
Homepage: http://github.com/cyu/ar_mailer/tree
Clone URL: git://github.com/cyu/ar_mailer.git
name age message
file .gitignore Thu Jul 03 02:04:13 -0700 2008 fixed bug with daemon failing on startup, by ex... [adzap]
file History.txt Mon Nov 10 14:14:53 -0800 2008 exit init.d script cleanly with message if no m... [adzap]
file LICENSE.txt Fri Mar 21 15:15:57 -0700 2008 Branching ar_mailer to version 1.3.1 From p4 r... [zenspider]
file Manifest.txt Thu Jul 03 21:15:02 -0700 2008 added new init.d script and changed old bsd path [adzap]
file README.rdoc Mon Feb 02 06:18:13 -0800 2009 updated doc to remove version num [cyu]
file Rakefile Thu Jul 03 21:15:50 -0700 2008 updated Rakefile to remove hoe dependency and c... [adzap]
file ar_mailer.gemspec Wed Apr 08 22:11:56 -0700 2009 bleh [cyu]
directory bin/ Wed Jul 02 20:49:10 -0700 2008 changed shebang to use env rather than hard cod... [adzap]
directory lib/ Wed Apr 08 21:56:32 -0700 2009 bringing back tls hack; [cyu]
directory share/ Mon Nov 10 14:14:53 -0800 2008 exit init.d script cleanly with message if no m... [adzap]
directory test/ Wed Nov 26 21:47:55 -0800 2008 don't require subclassing' [Calvin Yu]
README.rdoc

ar_mailer

A two-phase delivery agent for ActionMailer. This fork of the ar_mailer gem is a setup-friendlier version of the original created Eric Hodel.

Alternative versions of this gem:

About

Even delivering email to the local machine may take too long when you have to send hundreds of messages. ar_mailer allows you to store messages into the database for later delivery by a separate process, ar_sendmail.

Installing ar_mailer

Add this to your environment.rb:

  config.gem 'cyu-ar_mailer', :lib => 'ar_mailer', :source => 'http://gems.github.com'

And install the gem using rake:

  $ sudo rake gems:install

Alternatively, you do a manual install:

  $ sudo gem sources -a http://gems.github.com
  $ sudo gem install cyu-ar_mailer

See ActionMailer::ARMailer for instructions on converting to ARMailer.

See ar_sendmail -h for options to ar_sendmail.

init.d/rc.d scripts

For Linux both script and demo config files are in share/linux. See ar_sendmail.conf for setting up your config. Copy the ar_sendmail file to /etc/init.d/ and make it executable. Then for Debian based distros run ‘sudo update-rc.d ar_sendmail defaults’ and it should work. Make sure you have the config file /etc/ar_sendmail.conf in place before starting.

For FreeBSD or NetBSD script is share/bsd/ar_sendmail. This is old and does not support the config file unless someone wants to submit a patch.