Skip to content

Catch any outgoing email in your development env and have it redirected to you, not your clients.

License

Notifications You must be signed in to change notification settings

caseydreier/catchall

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Deliver To Developer Plugin

This plugin overwrites any “to”, “cc”, and “bcc” address lines in your outgoing email and replaces it with a user-specified input. This makes it easy to prevent any accidental email delivery when working on a development instance of an application with the mail server information enabled.

Example

In an initializer, add your emails that all outgoing mail will deliver to:

# in config/initializers/deliver_to_developer.rb
DeliverToDeveloper.developer_emails = %w([email protected] [email protected])

Then, in your development environment, append your mail delivery type with “_to_developer”:

# config/environments/development.rb
config.action_mailer.delivery_method = :smtp_to_developer # or :sendmail_to_developer, etc.

Now all outgoing emails in your development environment will be caught and redirected to the email addresses specified above, using your preferred delivery method (smtp or sendmail). Note that this will also prevent any ‘cc’ or ‘bcc’ emails from being sent, too.

Installation

This is a plugin, you can install it by calling the following from your Rails directory:

script/plugin install git://github.com/daphonz/deliver_to_developer

Copyright © 2010 Casey Dreier, released under the MIT license

About

Catch any outgoing email in your development env and have it redirected to you, not your clients.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages