update mechanic mailer code style and test