camohob/yii2-imap

Imap agent component for Yii2

Installs: 280

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 2

Forks: 2

Open Issues: 0

Type:yii2-extension

v1.0.7 2016-09-08 13:27 UTC

This package is not auto-updated.

Last update: 2024-11-10 05:41:09 UTC


README

Imap agent component for Yii2

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist camohob/yii2-imap "*"

or add

"camohob/yii2-imap": "*"

to the require section of your composer.json file.

Usage

Once the extension is installed, simply use it in your code by :

$imap = new ImapAgent;
$imap->type = 'imap/ssl/novalidate-cert';
$imap->server = 'imap.mail.ru';
$imap->port = 993;
$imap->user = 'mailbox@mail.ru';
$imap->password = 'password';
        
foreach ($imap->messages as $message) {
     $message->delete();
}
 
$imap->close();