Class: Cerberus::Publisher::Mail::ActionMailerPublisher
- Inherits:
-
ActionMailer::Base
- Object
- ActionMailer::Base
- Cerberus::Publisher::Mail::ActionMailerPublisher
- Defined in:
- lib/cerberus/publisher/mail.rb
Instance Method Summary collapse
Instance Method Details
#message(state, manager, options) ⇒ Object
31 32 33 34 35 36 |
# File 'lib/cerberus/publisher/mail.rb', line 31 def (state, manager, ) @subject, @body = Cerberus::Publisher::Base.(state, manager, ) @recipients, @sent_on = [:publisher, :mail, :recipients], Time.now @from = [:publisher, :mail, :sender] || '[email protected]' raise "Please specify recipient addresses for application '#{[:application_name]}'" unless @recipients end |