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

Created on 6 September 2021, almost 3 years ago
Updated 13 February 2023, over 1 year 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.69.0 2024