Skip to content

Instantly share code, notes, and snippets.

@hone
Created September 9, 2009 23:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hone/184166 to your computer and use it in GitHub Desktop.
Save hone/184166 to your computer and use it in GitHub Desktop.
# Settings for sanitize_email gem. These can be overridden in individual config/%env%/environment.rb files.
require 'sanitize_email'
ActionMailer::Base.sanitized_recipients = ["#{`whoami`.chomp}@#{`hostname`}"]
ActionMailer::Base.sanitized_bcc = nil
ActionMailer::Base.sanitized_cc = nil
# These are the environments whose outgoing email BCC, CC and recipients fields will be overridden!
# All environments not listed will be treated as normal.
ActionMailer::Base.local_environments = %w( development )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment