Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[5.2] Sparkpost bcc #13237

Merged
merged 5 commits into from
Apr 25, 2016
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
some style fixes I missed
  • Loading branch information
pochocho committed Apr 20, 2016
commit 416a7945cf7c6e8d9f716459365bbc670c0cc7b7
4 changes: 2 additions & 2 deletions src/Illuminate/Mail/Transport/SparkPostTransport.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ protected function getRecipients(Swift_Mime_Message $message)
}

$recipients = array_map(function ($address) {
return ['address' => [ 'email' => $address ,'header_to' => $address]];
return ['address' => ['email' => $address, 'header_to' => $address]];
}, $to);

return $recipients;
Expand All @@ -102,7 +102,7 @@ protected function getRecipients(Swift_Mime_Message $message)
protected function getFrom(Swift_Mime_Message $message)
{
$from = array_map(function ($email, $name) {
return [ 'name' => $name, 'email' => $email ];
return ['name' => $name, 'email' => $email];
}, array_keys($message->getFrom()), $message->getFrom());

return $from[0];
Expand Down