Skip to content
Permalink
Browse files

MessageFactory docs

  • Loading branch information...
mabar authored and f3l1x committed Jul 20, 2019
1 parent b6ba987 commit 3732413635222f68c49409ef26d7fc7ff30182af
Showing with 22 additions and 0 deletions.
  1. +22 −0 .docs/README.md
@@ -145,6 +145,28 @@ Internally wraps your mailer and displays sent mails when the `debug` option is

## Message

### MessageFactory

DIC-generated `Message` factory

```php
use Contributte\Mail\Message\IMessageFactory;
class Foo
{
/** @var IMessageFactory @inject */
public $messageFactory;
public function sendMail(): void
{
$message = $this->messageFactory->create();
// ...
}
}
```

### `Message::addTos(array $tos)`

This wrapper accepts an array of recipients and calls `addTo` on each one of them.

0 comments on commit 3732413

Please sign in to comment.
You can’t perform that action at this time.