kphp
kphp copied to clipboard
CURL for SMTP (and other protocols)
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