Project

mailpeek

0.0
No commit activity in last 3 years
No release in over 3 years
A web interface to view emails sent out when developing in Rails
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

Runtime

~> 2.7
~> 2.0
 Project Readme

Mailpeek

Mailpeek provides a web interface to view emails sent out when developing in Rails.

Installation

Add to your Gemfile:

gem 'mailpeek', group: %i[development test]

Setup

In your config/environments/development.rb file:

config.action_mailer.delivery_method = :mailpeek

Then add a file called config/initializers/mailpeek.rb with this:

Mailpeek.configure do |config|
  config.location = Rails.root.join('tmp/mailpeek')
end

Finally in your routes.rb file add this line:

mount Mailpeek::Web => '/mailpeek' if Rails.env.development?

Use

Once an email is sent in a Rails project, either via deliver_now or deliver_later. You can then view the email by visiting:

http://localhost:3000/mailpeek