Skip to content

Instantly share code, notes, and snippets.

@jwaldrip
Created June 12, 2012 21:10
Show Gist options
  • Save jwaldrip/2920158 to your computer and use it in GitHub Desktop.
Save jwaldrip/2920158 to your computer and use it in GitHub Desktop.
Mail Inteceptor
class DevelopmentMailInterceptor
def self.delivering_email(message)
message.subject = "#{message.to} #{message.subject}"
message.to = "jason@resipsalaw.com"
end
end
ActionMailer::Base.register_interceptor(DevelopmentMailInterceptor) if Rails.env.development?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment