Module: ActionRecipient::Interceptor

Defined in:
lib/action_recipient/interceptor.rb

Class Method Summary collapse

Class Method Details

.delivering_email(message) ⇒ Object



5
6
7
8
9
# File 'lib/action_recipient/interceptor.rb', line 5

def self.delivering_email(message)
  ActionRecipient::Rewriter.rewrite_addresses!(message, :to)
  ActionRecipient::Rewriter.rewrite_addresses!(message, :cc,  prefix: 'cc_')
  ActionRecipient::Rewriter.rewrite_addresses!(message, :bcc, prefix: 'bcc_')
end