Setup mailers for various environments.
Fixed the issue in user account controller.