lib/development/jobs/send_mail_job.rb
# If the mail cannot be sent, log the exception status in a file.
# This file can be checked by other parts of the application to monitor email-sending status.
# Swallow any exceptions raised in this method.
If the mail cannot be sent, log the exception status in a file.
This file can be checked by other parts of the application to monitor email-sending status.
Swallow any exceptions raised in this method.
If the mail cannot be sent log the exception status in a file . This file can be checked by other parts of the application to monitor email - sending status . Swallow any exceptions raised in this method .
def log_mail_fail(err)
      return if File.exist?(MAIL_FAIL)
      File.open(MAIL_FAIL, 'w') { |f| f.puts "#{err.class} => #{err.message}" }
    rescue StandardError => e
      puts "UNABLE TO HANDLE ERROR IN log_mail_fail: #{e.message}"
      nil
    end
def log_mail_fail ( err ) return if File . exist? ( MAIL_FAIL ) File . open ( MAIL_FAIL , 'w' ) { | f | f . puts "#{err.class} => #{err.message}" } rescue StandardError => e puts "UNABLE TO HANDLE ERROR IN log_mail_fail: #{e.message}" nil end
If the mail cannot be sent, log the exception status in a file.
If the mail cannot be sent log the exception status in a file .
err
<not_specific>