Class: SendWithUsMailer::Jobs::MailJob

Inherits:
ActiveJob::Base
  • Object
show all
Defined in:
lib/sendwithus_ruby_action_mailer/jobs/mail_job.rb

Overview

The SendWithUsMailer::Jobs::MailJob class is used when you want to send transactional emails outside of the request-response cycle.

Instance Method Summary collapse

Instance Method Details

#perform(email_id, to, options) ⇒ Object



10
11
12
# 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