Skip to content

Commit a2ef5c9

Browse files
committed
Merge branch 'hotfix/v0.1.1' into develop
2 parents 29efca0 + 6cfc993 commit a2ef5c9

File tree

3 files changed

+26
-10
lines changed

3 files changed

+26
-10
lines changed

README.md

Lines changed: 22 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
1-
# Very short description of the package
1+
# Laravel Mail Driver For SendInBlue
22

33
[![Latest Version on Packagist](https://img.shields.io/packagist/v/leeovery/laravel-sendinblue.svg?style=flat-square)](https://packagist.org/packages/leeovery/laravel-sendinblue)
4-
[![Build Status](https://img.shields.io/travis/leeovery/laravel-sendinblue/master.svg?style=flat-square)](https://travis-ci.org/leeovery/laravel-sendinblue)
5-
[![Quality Score](https://img.shields.io/scrutinizer/g/leeovery/laravel-sendinblue.svg?style=flat-square)](https://scrutinizer-ci.com/g/leeovery/laravel-sendinblue)
64
[![Total Downloads](https://img.shields.io/packagist/dt/leeovery/laravel-sendinblue.svg?style=flat-square)](https://packagist.org/packages/leeovery/laravel-sendinblue)
75

8-
This is where your description should go. Try and limit it to a paragraph or two, and maybe throw in a mention of what PSRs you support to avoid any confusion with users and contributors.
6+
Mail driver for Laravel to send emails via the SendInBlue v3 API.
97

108
## Installation
119

@@ -17,8 +15,26 @@ composer require leeovery/laravel-sendinblue
1715

1816
## Usage
1917

18+
To use this driver simply set the following config in your `/config/services.php` file as follows:
19+
2020
``` php
21-
// Usage description here
21+
22+
'sendinblue' => [
23+
'secret' => env('SENDINBLUE_SECRET'),
24+
25+
// optionally provide this but will default to whats specified here...
26+
'options' => [
27+
'endpoint' => 'https://api.sendinblue.com/v3',
28+
],
29+
],
30+
31+
```
32+
33+
Add the following to your env with your SendInBlue v3 API key:
34+
35+
```
36+
SENDINBLUE_SECRET={your SendInBlue v3 API key goes here}
37+
MAIL_DRIVER=sendinblue
2238
```
2339

2440
### Testing
@@ -50,4 +66,4 @@ The MIT License (MIT). Please see [License File](LICENSE.md) for more informatio
5066

5167
## Laravel Package Boilerplate
5268

53-
This package was generated using the [Laravel Package Boilerplate](https://laravelpackageboilerplate.com).
69+
This package was generated using the [Laravel Package Boilerplate](https://laravelpackageboilerplate.com).

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@
1818
"require": {
1919
"php": "^7.1",
2020
"guzzlehttp/guzzle": "^6.3",
21-
"illuminate/support": "5.8.*",
21+
"illuminate/support": "5.8.*|^6.0.0",
2222
"sendinblue/api-v3-sdk": "^6.1"
2323
},
2424
"require-dev": {
25-
"orchestra/testbench": "3.8.*",
25+
"orchestra/testbench": "3.8.*|^4.0.0",
2626
"phpunit/phpunit": "^7.0"
2727
},
2828
"autoload": {

src/SendInBlueTransport.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,8 @@ private function buildPayload(Swift_Mime_SimpleMessage $message, $recipients): S
9696
'email' => key($from),
9797
],
9898
'to' => $recipients['to'],
99-
'cc' => $recipients['cc'] ?? [],
100-
'bcc' => $recipients['bcc'] ?? [],
99+
'cc' => $recipients['cc'] ?? null,
100+
'bcc' => $recipients['bcc'] ?? null,
101101
'htmlContent' => $message->getBody(),
102102
//'textContent' => '',
103103
'subject' => $message->getSubject(),

0 commit comments

Comments
 (0)