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
Reafactoring
  • Loading branch information
pochocho committed Apr 21, 2016
commit e7bd03e94e2dba7de2d09efd5fc5524950dc6de4
2 changes: 1 addition & 1 deletion src/Illuminate/Mail/Transport/SparkPostTransport.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 compact('name', 'email');
}, array_keys($message->getFrom()), $message->getFrom());

return $from[0];
Expand Down