Skip to content

Commit

Permalink
Merge pull request #30 from jfp-cs/3.x
Browse files Browse the repository at this point in the history
Fix getBcc method
  • Loading branch information
motze92 authored Nov 2, 2022
2 parents 9189193 + 4adfc37 commit 44d419d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/Transport/Office365MailTransport.php
Original file line number Diff line number Diff line change
Expand Up @@ -243,15 +243,15 @@ protected function getReplyTo(Email $message)
*/
protected function getBcc(Email $message)
{
return collect((array) $message->getBcc())->map(function ($display, $address) {
return $display ? [
return collect((array) $message->getBcc())->map(function ($address) {
return $address->getName() ? [
'emailAddress' => [
'address' => $address,
'name' => $display
'address' => $address->getAddress(),
'name' => $address->getName()
]
] : [
'emailAddress' => [
'address' => $address
'address' => $address->getAddress()
]
];
})->values()->toArray();
Expand Down

0 comments on commit 44d419d

Please sign in to comment.