changes in application helper and rake task for send mail notification