class SendWithUsMailer::Jobs::MailJob
The SendWithUsMailer::Jobs::MailJob
class is used when you want to send transactional emails outside of the request-response cycle.
Public Instance Methods
perform(email_id, to, options)
click to toggle source
# File lib/sendwithus_ruby_action_mailer/jobs/mail_job.rb, line 10 def perform(email_id, to, options) SendWithUs::Api.new.send_email(email_id, to, options) end