@@ -95,6 +95,7 @@ foreach($aMailboxes as $oMailbox){
9595 /** @var \Webklex\IMAP\Message $oMessage */
9696 foreach($oMailbox->getMessages() as $oMessage){
9797 echo $oMessage->subject.'<br />';
98+ echo 'Attachments: '.$oMessage->getAttachments()->count().'<br />';
9899 echo $oMessage->getHTMLBody(true);
99100
100101 //Move the current Message to 'INBOX.read'
@@ -157,17 +158,18 @@ You can define your accounts inside the `config/imap.php` file:
157158| checkCurrentMailbox | | object | Check current mailbox |
158159
159160### \Webklex\IMAP\Message
160- | Method | Arguments | Return | Description |
161- | ------------ | ----------------------------- | :-----: | -------------------------------------- |
162- | delete | | | Delete the current Message |
163- | restore | | | Restore a deleted Message |
164- | copy | string $mailbox, int $options | | Copy the current Messages to a mailbox |
165- | move | string $mailbox, int $options | | Move the current Messages to a mailbox |
166- | moveToFolder | string $mailbox | | Move the Message into an other Folder |
167- | hasTextBody | | | Check if the Message has a text body |
168- | hasHTMLBody | | | Check if the Message has a html body |
169- | getTextBody | | string | Get the Message text body |
170- | getHTMLBody | | string | Get the Message html body |
161+ | Method | Arguments | Return | Description |
162+ | -------------- | ----------------------------- | :---------: | -------------------------------------- |
163+ | delete | | | Delete the current Message |
164+ | restore | | | Restore a deleted Message |
165+ | copy | string $mailbox, int $options | | Copy the current Messages to a mailbox |
166+ | move | string $mailbox, int $options | | Move the current Messages to a mailbox |
167+ | moveToFolder | string $mailbox | | Move the Message into an other Folder |
168+ | hasTextBody | | | Check if the Message has a text body |
169+ | hasHTMLBody | | | Check if the Message has a html body |
170+ | getTextBody | | string | Get the Message text body |
171+ | getHTMLBody | | string | Get the Message html body |
172+ | getAttachments | | collection | Get all message attachments |
171173
172174### \Webklex\IMAP\Folder
173175| Method | Arguments | Return | Description |
0 commit comments