added mandrill and nodemailer; sending mail; fixed bug to add state