Class: Chatterbox::Mailer
- Inherits:
-
ActionMailer::Base
- Object
- ActionMailer::Base
- Chatterbox::Mailer
- Defined in:
- lib/chatterbox/mailer.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.reloadable? ⇒ Boolean
7 |
# File 'lib/chatterbox/mailer.rb', line 7 def self.reloadable?() false end |
Instance Method Details
#message(data = {}) ⇒ Object
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
# File 'lib/chatterbox/mailer.rb', line 9 def (data={}) data = data.dup.symbolize_keys content_type data[:config][:content_type] || "text/plain" recipients data[:config][:to] from data[:config][:from] reply_to data[:config][:reply_to] if data[:config][:reply_to] bcc data[:config][:bcc] if data[:config][:bcc] cc data[:config][:cc] if data[:config][:cc] subject data[:message][:summary] body data[:message][:body] if data[:message][:body] end |