Skip to content
This repository


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP


branch: master

This branch is 0 commits ahead and 0 commits behind master

Fetching latest commit…

Cannot retrieve the latest commit at this time


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
config.email_recipient = ""
# set the config in another place (for example an initializer)
Rails.application.config.email_recipient = ""

## another possible options
## email_recipient needs to be set to make following work!
# send (as CC) to more recipients - second and following array 
# addresses will be set in CC header
config.email_recipient = ["", ""]
# prefix subject of outgoing emails
confir.email_subject_prefix = "[test_emails]"

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

Something went wrong with that request. Please try again.