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 firstname.lastname@example.org config.email_recipient = "email@example.com" # set the config in another place (for example an initializer) Rails.application.config.email_recipient = "firstname.lastname@example.org"
EmailRecipientGuard is using an ActionMailer interceptor to change the message before sending. No guarantees that this works for you so please test for yourself!
MIT License. Copyright 2012 autohaus24 GmbH