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

[6.x] Reattach bcc to $message for post events #30569

Merged
merged 2 commits into from Nov 12, 2019
Merged
Changes from 1 commit
Commits
File filter...
Filter file types
Jump to…
Jump to file or symbol
Failed to load files and symbols.

Always

Just for now

Next

reattach bcc to $message for post events

This will ensure that the bcc header isn't empty in events such as MessageSent.
  • Loading branch information
danijelk committed Nov 12, 2019
commit 510ea9d0ce4189d0af7ed68b5fa8a1a1847609ab
@@ -62,6 +62,7 @@ public function send(Swift_Mime_SimpleMessage $message, &$failedRecipients = nul

$to = $this->getTo($message);

$bcc = $message->getBcc();
$message->setBcc([]);

$response = $this->client->request(
@@ -74,6 +75,7 @@ public function send(Swift_Mime_SimpleMessage $message, &$failedRecipients = nul
'X-Mailgun-Message-ID', $this->getMessageId($response)
);

$message->setBcc($bcc);
$this->sendPerformed($message);

return $this->numberOfRecipients($message);
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.