Skip to content

Commit b56eaba

Browse files
authored
Add example SparkPost API options
1 parent 558ade0 commit b56eaba

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

README.md

+7-2
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,19 @@ Or by setting the environment variable `MAIL_DRIVER` in your .env file
3030
MAIL_DRIVER=sparkpost
3131
```
3232

33-
If you need to pass any options to the guzzle client instance which is making the request to the sparkpost API, you can do so by setting the 'guzzle' options in `config/services.php`
33+
If you need to pass any options to the guzzle client instance which is making the request to the sparkpost API, you can do so by setting the 'guzzle' options in `config/services.php`. Also you can provide options to pass to the SparkPost API by setting the 'options' array.
3434
```php
3535
'sparkpost' => [
3636
'secret' => env('SPARKPOST_SECRET'),
3737
'guzzle' => [
3838
'verify' => true,
3939
'decode_content' => true,
40-
]
40+
],
41+
'options' => [
42+
'open_tracking' => false,
43+
'click_tracking' => false,
44+
'transactional' => true,
45+
],
4146
],
4247
```
4348

0 commit comments

Comments
 (0)