adding emailing functionality with delayed jobs and security codes