kphp icon indicating copy to clipboard operation
kphp copied to clipboard

CURL for SMTP (and other protocols)

Open comm644 opened this issue 2 years ago • 0 comments

Hi!

I would like to use cURL for everything, At first for SMTP, next IMAP. But some features not supported in KPHP :(

This example: https://gist.github.com/hdogan/8649cd9c25c75d0ab27e140d5eef5ce2 Works fine for PHP not does not work in KPHP.

I've tried to define some constant, but not understand how to implement CURLOPT_READFUNCTION callback.

the code:

 curl_setopt($ch, CURLOPT_READFUNCTION, $cbread );

throw error:

conversion from Lambda$ub12ad8b775b5bd25_0 to mixed is forbidden

comm644 avatar Jul 07 '22 22:07 comm644