Problem/Motivation

If the parseAddress() returns array with only e-mail, than there is no array element with key 1. That cause the warning.
in SendGridMail.php:
code

Proposed resolution

Check if $fromaddrarray[1] isset, otherwise set site name:
$data['fromname'] = isset($fromaddrarray[1]) ? strval($fromaddrarray[1]) : strval($sitename);

CommentFileSizeAuthor
#2 Screenshot_2.png58.54 KBfromme
Screenshot_1.png70.46 KBfromme
Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

fromme created an issue. See original summary.

fromme’s picture

Version: 8.x-2.1 » 8.x-2.x-dev
Issue summary: View changes
StatusFileSize
new58.54 KB

fromme’s picture

Status: Active » Needs review

Open MR

chris matthews made their first commit to this issue’s fork.

chris matthews’s picture

Status: Needs review » Fixed

Thanks for the MR!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.