Closed mpoetzsch closed 1 year ago
This is the minimal example for outlook
<?php
$mailbox = '{outlook.office365.com:993/imap/ssl}';
$username = 'sam.sapiol@contoso.onmicrosoft.com';
$accessToken = '...';
$imap = imap2_open($mailbox, $username, $accessToken, OP_XOAUTH2);
the $accessToken
is the one you get with a call like this https://github.com/javanile/php-imap-outlook/blob/main/public/index.php#L25
Thank you! It works like a charm :D :+1:
I try to use your lib for connecting to outlook.office365.com with imap2_open(...) but couldnt connect. Do you have managed it, and can you add some examples to docu or here?