Add mail function for auth.