Class: AlchemyCrm::SubscriptionsMailer
- Inherits:
-
ActionMailer::Base
- Object
- ActionMailer::Base
- AlchemyCrm::SubscriptionsMailer
- Defined in:
- app/mailers/alchemy_crm/subscriptions_mailer.rb
Instance Method Summary collapse
Instance Method Details
#overview_mail(contact, element) ⇒ Object
5 6 7 8 9 10 11 12 13 14 |
# File 'app/mailers/alchemy_crm/subscriptions_mailer.rb', line 5 def overview_mail(contact, element) @contact = contact @subscriptions = contact.subscriptions @element = element mail( :from => element.ingredient("mail_from"), :to => contact.email, :subject => element.ingredient("mail_subject") ) end |