Skip to content

Latest commit

 

History

History
17 lines (14 loc) · 424 Bytes

README.md

File metadata and controls

17 lines (14 loc) · 424 Bytes

Email fetcher

Checks inbox for unread emails, sends them to webhook and marks read.

Example usage

require __DIR__ . '/vendor/autoload.php';

$fetcher = new Fetcher('http://helpdesk.f1lab.ru/email/post', [
    'host' => 'some.imap.server',
    'port' => '993',
    'user' => '[email protected]',
    'password' => 'some password',
    'ssl' => true,
], 10); // 10 is limit to process at once

$fetcher->fetch();