Warning/error generated when sending to CC or BCC without name

Created on 6 September 2021, about 3 years ago
Updated 13 February 2023, almost 2 years ago

If you attempt you send an email with either CC or BCC and it's not in the form of name <email address>, the following error is generated:

Notice: Undefined offset: 1 in Drupal\sendgrid_integration\Plugin\Mail\SendGridMail->mail() (line 429 of sendgrid_integration/src/Plugin/Mail/SendGridMail.php

Lines 429-433 contains the following code:

[$mail_cc_address, $cc_name] = $this->parseAddress($mail_id);
$address_cc_bcc[mb_strtolower($key)][] = [
  'mail' => $mail_cc_address,
  'name' => $cc_name,
];
πŸ› Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

πŸ‡¬πŸ‡§United Kingdom intrafusion Edinburgh, UK

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024