refactor user_mailer to avoid duplications