php-imap2
php-imap2 copied to clipboard
PHP IMAP with OAUTH2
https://www.php.net/manual/en/function.imap-open.php : 8.1.0 | Returns an IMAP\Connection instance now; previously, a resource was returned. several test sof resource type are performed and now return false in php8.1
Hi, I'd like to report the following error running under PHP 8.0.28: (xxx represents removed values) PHP Fatal error: Uncaught TypeError: fclose(): Argument #1 ($stream) must be of type resource,...
In php-imap2/src/Mailbox.php line 322+ the functions getSubscribed, listSubscribed, subscribe, unsubscribe all call deleteFolder() and imap_deletemailbox(). This seems odd to me. Is that correct? public static function getSubscribed($imap, $mailbox) { if...
Fix problem with bootstrap mode
@francescobianco I have found some errors with @phpstan. Please continue from where I've left off.
The workaround, change in: `src/Connection.php` ```php $success = $client->connect($this->host, $this->user, $this->password, array_merge($this->options, [ 'port' => $this->port, 'ssl_mode' => $this->sslMode, 'auth_type' => $this->flags & OP_XOAUTH2 ? 'XOAUTH2' : 'CHECK', 'timeout' =>...
Fixes #26
When using an application token (without user) it's not possible to connect (authenticate) to the server. Tried dividend scopes for the token: https://graph.microsoft.com/.default https://outlook.office.com/.default https://outlook.office365.com/.default All the permissions are set.
Repo has not been active since end of 2022 but I try anyway (I'll may be lucky !). I'll hope this fix will be merged or we'll have to maintain...
For context updated an old internal php site from 5.4 to 7.4 recently and needed a replacement for php_imap so I'm attempting to use this project. Was able to get...