Skip to content

Commit

Permalink
Fix bug in sending emails.
Browse files Browse the repository at this point in the history
  • Loading branch information
leeovery committed Sep 3, 2019
1 parent 5aeca15 commit 6cfc993
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@
"require": {
"php": "^7.1",
"guzzlehttp/guzzle": "^6.3",
"illuminate/support": "5.8.*",
"illuminate/support": "5.8.*|^6.0.0",
"sendinblue/api-v3-sdk": "^6.1"
},
"require-dev": {
"orchestra/testbench": "3.8.*",
"orchestra/testbench": "3.8.*|^4.0.0",
"phpunit/phpunit": "^7.0"
},
"autoload": {
Expand Down
4 changes: 2 additions & 2 deletions src/SendInBlueTransport.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,8 @@ private function buildPayload(Swift_Mime_SimpleMessage $message, $recipients): S
'email' => key($from),
],
'to' => $recipients['to'],
'cc' => $recipients['cc'] ?? [],
'bcc' => $recipients['bcc'] ?? [],
'cc' => $recipients['cc'] ?? null,
'bcc' => $recipients['bcc'] ?? null,
'htmlContent' => $message->getBody(),
//'textContent' => '',
'subject' => $message->getSubject(),
Expand Down

0 comments on commit 6cfc993

Please sign in to comment.