Skip to content

Commit fd50d60

Browse files
soywodSlamdunk
authored andcommitted
Add entry in README about Mailbox::addMessage (#325)
* Add entry in README about Mailbox::addMessage * Use more comprehensive tools.ietf.org
1 parent 8e7b4b3 commit fd50d60

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,15 @@ foreach ($messages as $message) {
120120
}
121121
```
122122

123+
To insert a new message (that just has been sent) into the Sent mailbox and flag it as seen:
124+
125+
```php
126+
$mailbox = $connection->getMailbox('Sent');
127+
$mailbox->addMessage($messageMIME, '\\Seen');
128+
```
129+
130+
Note that the message should be a string at MIME format (as described in the [RFC2045](https://tools.ietf.org/html/rfc2045)).
131+
123132
#### Searching for Messages
124133

125134
```php

0 commit comments

Comments
 (0)