Webklex / laravel-imap

Laravel IMAP is an easy way to integrate both the native php-imap module and an extended custom imap protocol into your Laravel app.
https://www.php-imap.com
MIT License
641 stars 182 forks source link

from and subject not correctly documented #411

Closed Akantor47 closed 2 years ago

Akantor47 commented 3 years ago

Describe the bug A clear and concise description of what the bug is.

The Documentation is not up to date.

Function ´getFrom()andgetSubject()` do not work as displayed in the documentations.

To Reproduce Steps to reproduce the behavior:

Connect to an IMAP server and Read messages via the examples/message_table.blade.php.

Line 33 wil throw an error. Correct to getSubject()->toArray()[0] for a working example.

Line 34 will throw an error. Correct to getFrom()->toArray()[0]->mail for a working example.

Expected behavior A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem.

Desktop / Server (please complete the following information):

Additional context Add any other context about the problem here.

EriBloo commented 2 years ago

You can fix it as well with getSubject()->first() and getFrom()->first()->mail.