Added request option to specify the server.  Also added a check for whether it's on a test mode and if so, to hack the email addreses