app/services/c100_app/applicant_online_submission.rb
def deliver_email
      NotifySubmissionMailer.with(application_details).application_to_user(
        to_address: to_address
      ).deliver_now
    end
# We use `deliver_now` here, as we want the actions performed in
# the `process` method to be executed sequentially and the whole job
# to fail and be retried in case any of the actions fail.
#
We use `deliver_now` here, as we want the actions performed in
the `process` method to be executed sequentially and the whole job
to fail and be retried in case any of the actions fail.
We use ` deliver_now ` here as we want the actions performed in the ` process ` method to be executed sequentially and the whole job to fail and be retried in case any of the actions fail .
def deliver_email
      NotifySubmissionMailer.with(application_details).application_to_user(
        to_address: to_address
      ).deliver_now
    end
def deliver_email NotifySubmissionMailer . with ( application_details ) . application_to_user ( to_address : to_address ) . deliver_now end
We use `deliver_now` here, as we want the actions performed in
the `process` method to be executed sequentially and the whole job
to fail and be retried in case any of the actions fail.
We use ` deliver_now ` here as we want the actions performed in the ` process ` method to be executed sequentially and the whole job to fail and be retried in case any of the actions fail .