The issue was not in the code but with credentials provided by eFax.  The code is working fine now. Will check Eduard's suggestion to drop the $zcvt()

Hi Alex,

Thank you for detailed answer. This might be a reason why the SSL handshake works on Cache 2016 but not on 2013. What openssl do you recommend to use (I don't have it installed)?

Thank you Brendan.

If this is the only way, then I will have to do a dynamic SQL instead of the embedded one because the number of search words changes from one query to the next.

Thank you Brendan.

If this is the only way, then I will have to do a dynamic SQL instead of the embedded one because the number of search words changes from one query to the next.

I know Fabian. We're in the process of upgrading but for the short while I needed  the solution.

Thanks.