Skip to content
Snippets Groups Projects
Commit 291a5f67 authored by Philippe Joulot's avatar Philippe Joulot Committed by Philippe Joulot
Browse files

Issue #3356221: Error when sending to multiple recipients

parent 32bc0acf
No related branches found
No related tags found
2 merge requests!30Issue #2971991 by amykhailova, code-drupal: "Cc" Recipient not receiving email...,!24Issue #3356221: Error when sending to multiple recipients
...@@ -457,6 +457,7 @@ class SendGridMail implements MailInterface, ContainerFactoryPluginInterface { ...@@ -457,6 +457,7 @@ class SendGridMail implements MailInterface, ContainerFactoryPluginInterface {
if (in_array(mb_strtolower($key), $cc_bcc_keys)) { if (in_array(mb_strtolower($key), $cc_bcc_keys)) {
$mail_ids = explode(',', $value); $mail_ids = explode(',', $value);
foreach ($mail_ids as $mail_id) { foreach ($mail_ids as $mail_id) {
$mail_id = trim($mail_id);
$email_components = $this->parseAddress($mail_id); $email_components = $this->parseAddress($mail_id);
$mail_cc_address = $email_components[0]; $mail_cc_address = $email_components[0];
// If there was a name with the mail, // If there was a name with the mail,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment