Class: CabooseRets::RetsMailer
- Inherits:
-
ActionMailer::Base
- Object
- ActionMailer::Base
- CabooseRets::RetsMailer
- Defined in:
- app/mailers/caboose_rets/rets_mailer.rb
Instance Method Summary collapse
Instance Method Details
#new_user(agent, user, from_address) ⇒ Object
5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
# File 'app/mailers/caboose_rets/rets_mailer.rb', line 5 def new_user(agent, user, from_address) @agent = agent @user = user @site = user.site to_address = Rails.env.development? ? '[email protected]' : agent.email bcc_address = Rails.env.development? ? '[email protected]' : @site.contact_email mail( :to => to_address, :bcc => bcc_address, :from => from_address, :subject => "New User Registration", :reply_to => bcc_address ) end |