Skip to content

Commit

Permalink
Set the global "to" shoud reset CC and BCC. Ohterwise this is just em…
Browse files Browse the repository at this point in the history
…ail duplication and makes no sense. (#21137)
  • Loading branch information
ilyadrv authored and taylorotwell committed Sep 12, 2017
1 parent 997e67c commit 5167414
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Illuminate/Mail/Mailer.php
Original file line number Diff line number Diff line change
Expand Up @@ -337,8 +337,8 @@ protected function renderView($view, $data)
protected function setGlobalTo($message)
{
$message->to($this->to['address'], $this->to['name'], true);
$message->cc($this->to['address'], $this->to['name'], true);
$message->bcc($this->to['address'], $this->to['name'], true);
$message->cc(null, null, true);
$message->bcc(null, null, true);
}

/**
Expand Down

0 comments on commit 5167414

Please sign in to comment.