Railmail
Railmail allows email to be delivered and inspected in development mode without the use of a mail server.
When Railmail is enabled, any mail sent by your application will be trapped and stored in a database table. An interface is enabled within your application where you can view these emails. With Railmail there is no need to set up testing email accounts while developing your application; just send out mail to any address and Railmail will capture it.
What it does
-
Tracks email that your application sends
-
Resends email with new recipients
-
Helps you to develop applications that use ActionMailer with no need for an smtp or sendmail setup
-
Saves the world
Install
As a Rails plugin, add this to your development.rb and run the following commands.
ActionMailer::Base.delivery_method = :railmail
./script/plugin install git://github.com/jqr/railmail.git
$ rake railmail:migration db:migrate
Prefer gems? Add this to your development.rb and then run the following command.
config.gem 'jqr-railmail', :lib => 'railmail', :source => 'http://gems.github.com'
ActionMailer::Base.delivery_method = :railmail
$ rake gems:install railmail:migration db:migrate
Usage
When your application is running and Railmail is configured correctly, navigating to /railmail/ will bring you to the main interface. Also, you can add your own custom routes that navigate to the railmail controller and put the interface wherever you want in your URL scheme.