Class: Peng::Channels::Email::Mailer
- Inherits:
-
ActionMailer::Base
- Object
- ActionMailer::Base
- Peng::Channels::Email::Mailer
- Defined in:
- lib/peng/channels/email.rb
Instance Method Summary collapse
Instance Method Details
#send_email ⇒ Object
5 6 7 8 9 10 11 12 13 14 15 16 17 |
# File 'lib/peng/channels/email.rb', line 5 def send_email data = params[:message] raise "The email should have :to and :from options" if data[:to].blank? || data[:from].blank? mail({ to: data[:to], from: data[:from], body: data[:body], content_type: "text/html", subject: data[:subject] }) end |