You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is a basic example, which will echo out all Mails within all imap folders
118
-
and will move every message into INBOX.read. Please be aware that this should not ben
118
+
and will move every message into INBOX.read. Please be aware that this should not be
119
119
tested in real live but it gives an impression on how things work.
120
120
121
121
```php
@@ -178,6 +178,8 @@ For an easier access please take a look at the new config option `imap.options.d
178
178
method takes three options: the required (string) $folder_name and two optional variables. An integer $attributes which
179
179
seems to be sometimes 32 or 64 (I honestly have no clue what this number does, so feel free to enlighten me and anyone
180
180
else) and a delimiter which if it isn't set will use the default option configured inside the [config/imap.php](src/config/imap.php) file.
181
+
> If you are using Exchange you might want to set all parameter and the last `$prefix_address` to `false` e.g. `$oClient->getFolder('name', 32, null, false)`#234
@@ -564,7 +570,7 @@ if you're just wishing a feature ;)
564
570
| checkConnection ||| Determine if connection was established and connect if not. |
565
571
| connect | int $attempts || Connect to server. |
566
572
| disconnect ||| Disconnect from server. |
567
-
| getFolder | string $folder_name, int $attributes = 32, int or null $delimiter| Folder | Get a Folder instance by name |
573
+
| getFolder | string $folder_name, int $attributes = 32, int or null $delimiter, bool $prefix_address| Folder | Get a Folder instance by name |
568
574
| getFolders | bool $hierarchical, string or null $parent_folder | FolderCollection | Get folders list. If hierarchical order is set to true, it will make a tree of folders, otherwise it will return flat array. |
569
575
| openFolder | string or Folder $folder, integer $attempts || Open a given folder. |
570
576
| createFolder | string $name | boolean | Create a new folder. |
@@ -712,7 +718,11 @@ if you're just wishing a feature ;)
712
718
| getContent || string or null | Get attachment content |
713
719
| getMimeType || string or null | Get attachment mime type |
714
720
| getExtension || string or null | Get a guessed attachment extension |
721
+
| getId || string or null | Get attachment id |
715
722
| getName || string or null | Get attachment name |
723
+
| getPartNumber || int or null | Get attachment part number |
724
+
| getContent || string or null | Get attachment content |
725
+
| setSize || int or null | Get attachment size |
716
726
| getType || string or null | Get attachment type |
717
727
| getDisposition || string or null | Get attachment disposition |
718
728
| getContentType || string or null | Get attachment content type |
| DateTime::__construct(): Failed to parse time string (...) | Please report any new invalid timestamps to [#45](https://github.com/Webklex/php-imap/issues/45)|
786
796
| imap_open(): Couldn't open (...) Please log in your web browser: (...) | In order to use IMAP on some services (such as Gmail) you need to enable it first. [Google help page](https://support.google.com/mail/answer/7126229?hl=en)|
787
797
| imap_headerinfo(): Bad message number | This happens if no Message number is available. Please make sure Message::parseHeader() has run before |
798
+
| imap_fetchheader(): Bad message number | Try to change the `message_key`[#243](https://github.com/Webklex/laravel-imap/issues/243)
0 commit comments