Skip to content

Instantly share code, notes, and snippets.

Musa Avcı mavci

Block or report user

Report or block mavci

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
mavci / test.php
Created Dec 10, 2015
IMAP Example (Laravel)
View test.php
$mailbox = new PhpImap\Mailbox('{}INBOX', '', '******', __DIR__);
$mails = array();
$mailsIds = $mailbox->searchMailBox('UNSEEN');
if( ! $mailsIds)
die('Mailbox is empty');
foreach ($mailsIds as $mail_id)
$mail = $mailbox->getMail($mail_id);
You can’t perform that action at this time.