I tired the new script, but I had to modify it so I could pass in my domain user and pass. When I try to run it I am getting
No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'null' is therefore not allowed access. Is there something I need to setup on smartermail to make this possible?