# Read about interceptors in http://guides.rubyonrails.org/action_mailer_basics.html#intercepting-emailsclassDisableEmailInterceptordefself.delivering_email(message)message.perform_deliveries=falseRails.logger.info"Emails disabled! Interceptor prevented sending mail #{message.subject}"endend