zalazdi / laravel-imap

Laravel 5 IMAP client.
MIT License
48 stars 24 forks source link

Documentation would be great. #7

Closed fwartner closed 6 years ago

fwartner commented 8 years ago

How the (excuse me!) fuck do i make use of this library?!

maisn3r commented 8 years ago

Looks like we must find ourselfs :D

fwartner commented 8 years ago

Great… Not. ^^

Am 04.06.2016 um 00:52 schrieb Ventsislav Ivanov notifications@github.com:

Looks like we must find ourselfs :D

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/zalazdi/laravel-imap/issues/7#issuecomment-223713294, or mute the thread https://github.com/notifications/unsubscribe/AGYelESniZTcBa_Vo04b9pQUiYl_qZUuks5qILATgaJpZM4Ikq5m.

truongthinnguyen-zz commented 7 years ago

Hi @fwartner ,

I also have a question like you. And here is the way I did and it worked well.

$ composer require zalazdi/laravel-imap
Zalazdi\LaravelImap\LaravelImapServiceProvider::class,
use Zalazdi\LaravelImap\Client;
use Zalazdi\LaravelImap\Mailbox;

...

$client = new Client();
$client->connect();

$mailboxes = $client->getMailboxes();
foreach($mailboxes as $mailbox) {
        dd($mailbox->getMessages());
}

Happy coding.

sufian07 commented 7 years ago

Thanks @truongthinnguyen for this explanation, it would be appreciated if you can provide example for mailbox configuration.

rap2hpoutre commented 7 years ago

Fixed via https://github.com/zalazdi/laravel-imap/pull/14

rap2hpoutre commented 6 years ago

@zalazdi this issue could be closed