abdullahseba
abdullahseba
I set `$id = 20` cuz I dont have 24 emails. ``` object(stdClass)#4 (11) { ["type"]=> int(1) ["encoding"]=> int(0) ["ifsubtype"]=> int(1) ["subtype"]=> string(11) "ALTERNATIVE" ["ifdescription"]=> int(0) ["ifid"]=> int(0) ["ifdisposition"]=> int(0)...
oh, no its 23 ``` object(stdClass)#4 (11) { ["type"]=> int(1) ["encoding"]=> int(0) ["ifsubtype"]=> int(1) ["subtype"]=> string(11) "ALTERNATIVE" ["ifdescription"]=> int(0) ["ifid"]=> int(0) ["ifdisposition"]=> int(0) ["ifdparameters"]=> int(0) ["ifparameters"]=> int(1) ["parameters"]=> array(1) {...
hmm.. will try that.
I tried `$emails = $imap->getMessages($number = 0, $start = 0, $order = 'DESC');` but it does nothing.
I did but its not in the date order of the mail.  So that's the correct order that the mail got in the inbox but not the correct date...
`Fatal error: Uncaught Error: Call to undefined function getBriefInfoMessages()`
`Fatal error: Uncaught Error: Call to undefined function getBriefInfoMessages()`
`Fatal error: Uncaught Error: Call to undefined function getBriefInfoMessages()` Cant do any more. All my code is from the docs.
``` $hostname = '{mail.e17pumphouse.org.uk:993/imap/ssl/novalidate-cert}'; $username = '[email protected]'; $password = 'pass'; $inbox = imap_open($hostname,$username,$password) or die('Cannot connect to Gmail: ' . imap_last_error()); $imap = new ImapClient($mailbox, $username, $password, $encryption); var_dump( $imap->getBriefInfoMessages()...
``` [20-Apr-2017 23:37:08 Europe/London] Slim Application Error: Type: ArgumentCountError Message: Too few arguments to function SSilence\ImapClient\ImapClient::getMessage(), 0 passed in C:\xampp\htdocs\uf4.0.8\app\sprinkles\webmail\src\Controller\WebmailController.php on line 38 and at least 1 expected File: C:\xampp\htdocs\uf4.0.8\app\vendor\ssilence\php-imap-client\ImapClient\ImapClient.php...