setting up mailer via state machine gem