Modified rake task; added mailer