Skip to content

Commit

Permalink
small fix in readme
Browse files Browse the repository at this point in the history
  • Loading branch information
kekaadrenalin committed Nov 15, 2019
1 parent 8b4de34 commit c67ff50
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,18 +61,18 @@ $imapConnection->decodeMimeStr = true;
$mailbox = new kekaadrenalin\Mailbox($imapConnection);
```

#To get all mails and its index
# To get all mails and its index
```php
$mailIds = $mailbox->searchMailBox(); // Gets all Mail ids.
print_r($mailIds);
```

#Do not read attachments
# Do not read attachments
```php
$mailbox->readMailParts = false;
```

#To read Inbox contents
# To read Inbox contents
```php
foreach($mailIds as $mailId)
{
Expand All @@ -95,7 +95,7 @@ foreach($mailIds as $mailId)
}
```

#To Mark and delete mail from IMAP server.
# To Mark and delete mail from IMAP server.
```php
$mailbox->deleteMail($mailId); // Mark a mail to delete
$mailbox->expungeDeletedMails(); // Deletes all marked mails
Expand Down

0 comments on commit c67ff50

Please sign in to comment.