Modifying readme
This commit is contained in:
parent
81588dfb19
commit
acf10e92b4
20
README.md
20
README.md
|
@ -46,26 +46,26 @@ BMAIL_API_URL=the_api_url
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
$template = (new BMailTemplate("** template_id **"))
|
$template = (new BMailTemplate("** template_id **"))
|
||||||
->sender("john.doe@gmail.com", 'John OPTIONNAL') OPTIONNAL
|
->sender("john.doe@gmail.com", "John OPTIONNAL") OPTIONNAL
|
||||||
->replyTo("jean.grey@gmail.com", 'Jean OPTIONNAL') OPTIONNAL
|
->replyTo("jean.grey@gmail.com", "Jean OPTIONNAL") OPTIONNAL
|
||||||
->recipients([
|
->recipients([
|
||||||
[
|
[
|
||||||
'elvis@gmail.com', [
|
"elvis@gmail.com", [
|
||||||
'name' => 'Elvis' OPTIONNAL,
|
"name" => "Elvis" OPTIONNAL,
|
||||||
'parameters' => ['key' => 'value'] OPTIONNAL
|
"parameters" => ["key" => "value"] OPTIONNAL
|
||||||
]
|
]
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
'robert@gmail.com'
|
"robert@gmail.com"
|
||||||
]
|
]
|
||||||
])
|
])
|
||||||
->addRecipient('edward@gmail.com')
|
->addRecipient("edward@gmail.com")
|
||||||
->parameters(['key1' => 'value1', 'key2' => 'value2'])
|
->parameters(["key1" => "value1", "key2" => "value2"])
|
||||||
->addParameter('key', 'value');
|
->addParameter("key", "value");
|
||||||
```
|
```
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
return (new BMailApi(config('bmail.api_key')))->send($template);
|
return (new BMailApi(config("bmail.api_key")))->send($template);
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue