romanitalian / email-reader
EmailReader (romanitalian.github.io)
Installs: 4
Dependents: 0
Suggesters: 0
Security: 0
Stars: 3
Watchers: 2
Forks: 0
Open Issues: 0
Type:php
This package is not auto-updated.
Last update: 2025-01-18 21:14:06 UTC
README
<?php require_once 'autoload.php'; $Auth = new Auth(); $Auth->user = 'your_email@yandex.ru'; $Auth->pass = '123412341'; $Auth->server = array('inbox' => '{imap.yandex.ru:993/imap/ssl}INBOX'); // Example as your custom wrapper: $Example = new Example($Auth); $unseen['Using Example'] = $Example->getUnsen(); $inboxAll['Using Example'] = $Example->getInboxAll(); // or use this way: $unseen['Using native Reader'] = Email\Reader::getInstance()->setAuth($Auth)->loadAndParseInbox()->content; $inboxAll['Using native Reader'] = Email\Reader::getInstance()->setAuth($Auth)->loadAndParseInboxAll()->content; var_dump($unseen); var_dump($inboxAll);