Archiving your Sent Mail with the RailMail Plugin
Posted by Daniel Butler Sat, 03 Jun 2006 10:12:00 GMT
Scott Fleckenstein of Rubyred Labs has announced the release of RailMail, a Ruby on Rails plugin that, “traps any mail sent through ActionMailer (when the delivery_method is set to :railmail), stores it in a database, and provides an interface to view those messages.”
Once installed into your app using script/plugin install http://hg.nullstyle.com/raw/railmail, enable it in your environment.rb file:
config.action_mailer.delivery_method = :railmailTo log messages and pass them through a SMTP mailer, add the following code
config.after_initialize do
Railmail::ActionMailer::InstanceMethods.\
railmail_settings[:passthrough] = :smtp
endSimple concept, easy implementation, big results.
RailMail Home Page
Blog Post about RailMail
RailMail at the Rails Plugins Directory

