Problem/Motivation

Every time an email is sent, two notices are received:

Notice: Undefined index: character_set in Drupal\swiftmailer\Plugin\Mail\SwiftMailer->getApplicableCharset() (line 518 of modules/contrib/swiftmailer/src/Plugin/Mail/SwiftMailer.php).
Notice: Undefined index: username in Drupal\swiftmailer\TransportFactory->getTransport() (line 56 of modules/contrib/swiftmailer/src/TransportFactory.php)

Steps to reproduce

Every time an email is sent the notice is received.

Proposed resolution

Apply a patch.

CommentFileSizeAuthor
#3 3192535-3.patch787 bytesmohit.bansal623
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

iuliad created an issue. See original summary.

iuliad’s picture

Issue summary: View changes
mohit.bansal623’s picture

Status: Active » Needs review
StatusFileSize
new787 bytes

Applied patch, please review.

adamps’s picture

Status: Needs review » Needs work
Issue tags: +Needs issue summary update

Thanks for raising.

Please can you update the issue summary to describe a sequence of steps to reproduce the bug? In other words, how can it be that $this->config['message']['character_set'] is undefined?