No commit activity in last 3 years
No release in over 3 years
By setting a config option you can configure your outgoing email to always go to the same address (useful for example for development or staging environments)
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 0

Runtime

>= 0
 Project Readme

EmailRecipientGuard

By setting a config option you can configure your outgoing email to always go to the same address (useful for example for development or staging environments).

# turn off EmailRecipientGuard (default)
config.email_recipient = nil
# send all emails to test@example.com
config.email_recipient = "test@example.com"
# set the config in another place (for example an initializer)
Rails.application.config.email_recipient = "test@example.com"

EmailRecipientGuard is using an ActionMailer interceptor to change the message before sending. No guarantees that this works for you so please test for yourself!

License

MIT License. Copyright 2012 autohaus24 GmbH