add delayed job email also improve answer code