inquriy_mailer.rb refactored in order to remove duplication