Skip to content

TNEF support #21

Open
Open
@DjeyKey

Description

@DjeyKey

Hi everyone,

Im using the lib 2.1.8 on Laravel 8.0.2 / PHP 7.4 and an MS exchange server.
Im able to connect to the account, count the number of emails in a specific folder, but cannot get the messages. Here's the code and the stack error.

Conf imap :


$oClient = new Client([
	 'host'  => 'Server',
        'port'  => 993,
        'protocol'  => 'imap', //might also use imap, [pop3 or nntp (untested)]
        'encryption'    => 'ssl', // Supported: false, 'ssl', 'tls'
        'validate_cert' => true,
        'username' => 'name@dns.com',
        'password' => 'password'
	]);
'options' => [
        'delimiter' => '/',
        'fetch_body' => true,
        'fetch_flags' => true,
        'message_key' => 'list',
        'fetch_order' => 'asc',
        'open' => [
            // 'DISABLE_AUTHENTICATOR' => 'GSSAPI'
        ],
        'decoder' => [
            'message' => 'utf-8', // mimeheader
            'attachment' => 'utf-8' // mimeheader
        ]
    ]

Connect : OK
Count messages : OK
Get All messages from folder : KO

Code :

$oClient->connect();
	$oFolder = $oClient->getFolder('Orange');
	$count = $oFolder->query()->all()->count();
	$messages = $oFolder->query()->all()->get();
	echo "$count";

Error seems to append when fecthing the messages.

Capture d’écran 2020-10-08 095712

Thx,
Djey

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions