Skip to content
An ActionMailer delivery method to save mails as files in a directory.
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
lib We should be able to use this with the minimal effort.
rails Failed to change the path to load when I changed rails versions. That…
test I missed out the rails path from the gemspec, so no init.rb, so no ho…
.gitignore A clean git status is a joyous thing.
Gemfile Modenize.
Gemfile.lock Modenize.
Rakefile Modenize.
inaction_mailer.gemspec Modenize.



Add the following lines to the appropriate config/environments/*.rb file:

config.gem "inaction_mailer", :lib => 'inaction_mailer/force_load', :source => ''

As an extra step, for the sake of paranoia, you can check the delivery mechanism with:

./script/runner 'p ActionMailer::Base.delivery_method'

Now when you app send e-mails, it will deliver them to RAILS_ROOT/tmp/sent_mails/mail.*.txt.

Viewing your messages in a mail client

For this task, I kindly hand you over to popthis. It will serve your sent_mails folder as a pop3 account on your local machine.

Something went wrong with that request. Please try again.