laravel-imap icon indicating copy to clipboard operation
laravel-imap copied to clipboard

from and subject not correctly documented

Open Akantor47 opened this issue 3 years ago • 1 comments

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):

  • OS: Ubuntu Server
  • PHP: 7.4
  • Version 20.04 LTS

Additional context Add any other context about the problem here.

Akantor47 avatar Sep 03 '21 10:09 Akantor47

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

EriBloo avatar Jan 17 '22 14:01 EriBloo