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
mavci / test.php
Created Dec 10, 2015
IMAP Example (Laravel)
View test.php
$mailbox = new PhpImap\Mailbox('{imap.yandex.com.tr:993/imap/ssl}INBOX', 'mail@mail.com', '******', __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.