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
|
||||
$template = (new BMailTemplate("** template_id **"))
|
||||
->sender("john.doe@gmail.com", 'John')
|
||||
->replyTo("jean.grey@gmail.com", 'Jean')
|
||||
->sender("john.doe@gmail.com", 'John OPTIONNAL') OPTIONNAL
|
||||
->replyTo("jean.grey@gmail.com", 'Jean OPTIONNAL') OPTIONNAL
|
||||
->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("robert@gmail.com", ['name' => 'Rob', 'parameters' => ['key' => 'value']])
|
||||
->parameters(['foo' => 'bar', 'foo' => 'fighter'])
|
||||
->parameters(['key1' => 'value1', 'key2' => 'value2'])
|
||||
->addParameter('key', 'value');
|
||||
```
|
||||
|
||||
|
|
Loading…
Reference in New Issue