Class: ActionMailer::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/ses-proxy-rails.rb

Instance Method Summary collapse

Instance Method Details

#create_mail_with_ses_proxy_headerObject



50
51
52
53
54
55
56
57
# File 'lib/ses-proxy-rails.rb', line 50

def create_mail_with_ses_proxy_header
  mail = create_mail_without_ses_proxy_header
  mail['X-Sender-System'] = SesProxyRails::Config.get_application_name
  if SesProxyRails::Config.replace_recipient and Rails.env.development?
    mail.to = SesProxyRails::Config.get_replacement_address
  end
  mail
end