Project

fakemail

0.0
No commit activity in last 3 years
No release in over 3 years
Provides a fake sendmail binary to store email output for email dubugging purposes.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies
 Project Readme

Fakemail¶ ↑

Fakemail is a simple sendmail replacement made for debugging/inpection purposes.

Features¶ ↑

  • Works in any Ruby app (Rails/Mer/Sinatra)

  • Stores each email as 2 files: headers and content.

  • Both text and html formats are supported.

Installation¶ ↑

Install as a gem:

gem install fakemail

Usage¶ ↑

Add gem dependency to your Gemfile:

group :development do
  gem 'fakemail'
end

To see where the actual script is:

which fakemail

Usage: Rails¶ ↑

Edit your development environment file config/environments/development.rb:

config.action_mailer.delivery_method = :sendmail 
config.action_mailer.sendmail_settings = {:location => `which fakemail`.strip}

Restart the app, and its ready to go.

Usage: Pony¶ ↑

Pony.mail(
  :via => :sendmail,
  :via_options => {
    :location  => 'PATH_TO_FAKEMAIL',
  }
)