Skip to content

How to bring the message more recently? #93

@alexv96

Description

@alexv96

I am trying to get the most recent message only the first one but with the custom I only get null, I don't know if the query is wrong or if it is missing some parameter.

            $oClient = $cm->make([
                'host' => 'outlook.office365.com',
                'port' => 993,
                'protocol' => 'imap',
                'encryption' => 'ssl',
                'validate_cert' => true,
                'username' => 'hola@outlook.cl',
                'password' => '******',
            ]);
               
            $oClient->connect();
            $messages = $oClient->getFolder('INBOX')->query()->WHERE('RECENT')->get();
            dd($messages);

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions