# \[ANN\] ar\_mailer 1.1

**URL:** <https://www.ruby-forum.com/t/ann-ar-mailer-1-1/65633>\
**Category:** Rails\
**Created:** [August 20, 2006, 1:11am UTC](https://www.ruby-forum.com/t/ann-ar-mailer-1-1/65633 "2006-08-20T01:11:57Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![miracleofmagick](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/71c47a/32.png) [@miracleofmagick](https://www.ruby-forum.com/u/miracleofmagick)\
**Post date:** [August 20, 2006, 1:11am UTC](https://www.ruby-forum.com/t/ann-ar-mailer-1-1/65633/1 "2006-08-20T01:11:57Z")

</div>

ar\_mailer allows you to queue ActionMailer emails in the database  
that will be sent with a separate process. ar\_mailer gives drastic  
speed-ups when you need to send many emails.

To install ar\_mailer:

sudo gem install ar\_mailer

You can also download ar\_mailer from Rubyforge:

[http://rubyforge.org/frs/?group\_id=1266&release\_id=6548](http://rubyforge.org/frs/?group_id=1266&release_id=6548)

For instructions on how to convert from the regular delivery methods  
to using ar\_mailer see:

[http://dev.robotcoop.com/Tools/ar\_mailer/](http://dev.robotcoop.com/Tools/ar_mailer/)

ar\_mailer-1.1.0 follows quick on the heels of ar\_mailer 1.0. I’ve  
got several important features and bug fixes:

== Features

- Added --chdir to set rails directory
- Added --environment to set RAILS\_ENV
- Exits cleanly on TERM or INT signals
- Added FreeBSD rc.d script
- Exceptions during SMTP sending are now logged
- No longer waits if sending email took too long

== Bugs fixed

- Fixed last send attempt in --mailq
- Better SMTP error handling
  - Messages are removed from the queue on 5xx errors
  - Added Net::SMTP.reset to avoid needing to recreate the connection

–  
Eric H. - removed\_email\_address@domain.invalid - [http://blog.segment7.net](http://blog.segment7.net)  
This implementation is HODEL-HASH-9600 compliant

[http://trackmap.robotcoop.com](http://trackmap.robotcoop.com)
