class Peng::Channels::Email::Mailer
Public Instance Methods
send_email()
click to toggle source
# 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