Added delayed_job for sending emails