Skip to content

Instantly share code, notes, and snippets.

@assaf
Created January 31, 2010 23:55
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 assaf/291322 to your computer and use it in GitHub Desktop.
Save assaf/291322 to your computer and use it in GitHub Desktop.
class ActionMailer::Base
# Using this on staging server: never send emails to actual people.
# (Ocassionaly pulling live data into staging server)
def perform_delivery_safemail(mail)
addr = mail.to_addrs.first
mail.to = %{"#{addr.name || addr.address}" <test@... your email ...>}
perform_delivery_sendmail mail
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment