javanile/php-imap2

PHP IMAP with OAUTH2

0.1.10 2022-10-25 08:46 UTC

This package is auto-updated.

Last update: 2024-04-11 17:19:46 UTC


README

give-stars-h192.gifpush-button-h192.gif

PHP IMAP2

PHP IMAP2

Linter

Requirements

  • PHP >= 7.0

Install

composer require javanile/php-imap2

or

Download latest release

Usage

$mbh = imap2_open($server, $username, $token, OP_XOAUTH2);
if (! $mbh) {
    error_log(imap2_last_error());
    throw new \RuntimeException('Unable to open the INBOX');
}

Gmail OAuth2

Scope: https://mail.google.com/

Sandbox

Contributors

Other links

Reference

Microsoft Outlook

IMAP & OAUTH