Module: Padrino::Mailer::Helpers
- Defined in:
- padrino-mailer/lib/padrino-mailer/helpers.rb
Overview
Helpers for defining and delivering email messages.
Defined Under Namespace
Modules: ClassMethods
Instance Method Summary collapse
-
#deliver(mailer_name, message_name, *attributes) ⇒ Object
Delivers a mailer message email with the given attributes.
-
#email(mail_attributes = {}, &block) ⇒ Object
Delivers an email with the given mail attributes.
Instance Method Details
#deliver(mailer_name, message_name, *attributes) ⇒ Object
Delivers a mailer message email with the given attributes.
48 49 50 |
# File 'padrino-mailer/lib/padrino-mailer/helpers.rb', line 48 def deliver(mailer_name, , *attributes) settings.deliver(mailer_name, , *attributes) end |
#email(mail_attributes = {}, &block) ⇒ Object
Delivers an email with the given mail attributes.
29 30 31 |
# File 'padrino-mailer/lib/padrino-mailer/helpers.rb', line 29 def email(mail_attributes={}, &block) settings.email(mail_attributes, &block) end |