lib/development/jobs/send_mail_job.rb
# If mail-sending is OK, remove the exception status file.
# Swallow any exceptions raised in this method.
If mail-sending is OK, remove the exception status file.
Swallow any exceptions raised in this method.
If mail - sending is OK remove the exception status file . Swallow any exceptions raised in this method .
def clear_mail_fail
      File.delete(MAIL_FAIL) if File.exist?(MAIL_FAIL)
    rescue StandardError => e
      puts "UNABLE TO HANDLE ERROR IN clear_mail_fail: #{e.message}"
      nil
    end
def clear_mail_fail File . delete ( MAIL_FAIL ) if File . exist? ( MAIL_FAIL ) rescue StandardError => e puts "UNABLE TO HANDLE ERROR IN clear_mail_fail: #{e.message}" nil end
If mail-sending is OK, remove the exception status file.
If mail - sending is OK remove the exception status file .