Modifying readme
This commit is contained in:
parent
e619f68be8
commit
34986e1a99
18
README.md
18
README.md
|
@ -46,15 +46,21 @@ BMAIL_API_URL=the_api_url
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
$template = (new BMailTemplate("** template_id **"))
|
$template = (new BMailTemplate("** template_id **"))
|
||||||
->sender("john.doe@gmail.com", 'John')
|
->sender("john.doe@gmail.com", 'John OPTIONNAL') OPTIONNAL
|
||||||
->replyTo("jean.grey@gmail.com", 'Jean')
|
->replyTo("jean.grey@gmail.com", 'Jean OPTIONNAL') OPTIONNAL
|
||||||
->recipients([
|
->recipients([
|
||||||
['elvis@gmail.com', ['name' => 'Elvis']],
|
[
|
||||||
['matthew@gmail.com', ['name' => 'Matthew', 'parameters' => ['key' => 'value']]
|
'elvis@gmail.com', [
|
||||||
|
'name' => 'Elvis' OPTIONNAL,
|
||||||
|
'parameters' => ['key' => 'value'] OPTIONNAL
|
||||||
|
]
|
||||||
|
],
|
||||||
|
[
|
||||||
|
'robert@gmail.com'
|
||||||
|
]
|
||||||
])
|
])
|
||||||
->addRecipient('edward@gmail.com')
|
->addRecipient('edward@gmail.com')
|
||||||
->addRecipient("robert@gmail.com", ['name' => 'Rob', 'parameters' => ['key' => 'value']])
|
->parameters(['key1' => 'value1', 'key2' => 'value2'])
|
||||||
->parameters(['foo' => 'bar', 'foo' => 'fighter'])
|
|
||||||
->addParameter('key', 'value');
|
->addParameter('key', 'value');
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue