Using Javascript in php

I would think so, they’re just alternatives to using the PHP mail() function. If the old script is suddenly not working, you mentioned that the owner didn’t want to talk to the host about updates, do you have any idea of what the updates might be? Or you could post the script code here, anonymised of course, to see if anyone can spot what’s going wrong.