adding emailing functionality with delayed jobs