fixed email controller and added different env variables for email reste