Email composing using frontend code from the ruby mooc and saving to db.