Class: Textris::Delivery::Mail
- Defined in:
- lib/textris/delivery/mail.rb
Defined Under Namespace
Classes: Mailer
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
Constructor Details
This class inherits a constructor from Textris::Delivery::Base
Instance Method Details
#deliver(to) ⇒ Object
10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/textris/delivery/mail.rb', line 10 def deliver(to) template_vars = { :to_phone => to } from = apply_template from_template, template_vars to = apply_template to_template, template_vars subject = apply_template subject_template, template_vars body = apply_template body_template, template_vars ::Textris::Delivery::Mail::Mailer.notify( from, to, subject, body).deliver end |