Created
January 31, 2010 23:55
-
-
Save assaf/291322 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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