Skip to content

Instantly share code, notes, and snippets.

Musa Avcı mavci

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.