Documentation would be great.
Closed this issue · 6 comments
How the (excuse me!) fuck do i make use of this library?!
Looks like we must find ourselfs :D
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 #7 (comment), or mute the thread https://github.com/notifications/unsubscribe/AGYelESniZTcBa_Vo04b9pQUiYl_qZUuks5qILATgaJpZM4Ikq5m.
Hi @fwartner ,
I also have a question like you. And here is the way I did and it worked well.
- Install this package by command
$ composer require zalazdi/laravel-imap
- Copy file vendor\zalazdi\laravel-imap\config\imap.php to config\imap.php and then you should change host, username, password, etc.. in that file.
- Copy this line to config\app.php into providers section
Zalazdi\LaravelImap\LaravelImapServiceProvider::class,
- In your controller should be included this code before call function
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.
Thanks @truongthinnguyen for this explanation, it would be appreciated if you can provide example for mailbox configuration.
Fixed via #14
@zalazdi this issue could be closed