Problem/Motivation

Getting this error in the logs when user email is not defined:

#0 /var/www/html/web/core/lib/Drupal/Core/Mail/Plugin/Mail/PhpMail.php(123): Drupal\Core\Mail\Plugin\Mail\PhpMail->doMail(NULL, 'Your account wi...', 'Dear User,\n\nYou...', 'MIME-Version: 1...', '-<edited>...')
#1 /var/www/html/web/core/lib/Drupal/Core/Mail/MailManager.php(308): Drupal\Core\Mail\Plugin\Mail\PhpMail->mail(Array)
#2 /var/www/html/web/core/lib/Drupal/Core/Mail/MailManager.php(181): Drupal\Core\Mail\MailManager->doMail('purge_users', 'cancel_users', NULL, 'en', Array, NULL, true)
#3 /var/www/html/web/core/lib/Drupal/Core/Render/Renderer.php(593): Drupal\Core\Mail\MailManager->Drupal\Core\Mail\{closure}()
#4 /var/www/html/web/core/lib/Drupal/Core/Mail/MailManager.php(180): Drupal\Core\Render\Renderer->executeInRenderContext(Object(Drupal\Core\Render\RenderContext), Object(Closure))

Investigating.

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

mably created an issue. See original summary.

mably’s picture

Status: Active » Needs review
dxvargas’s picture

Status: Needs review » Reviewed & tested by the community

The code seems simple and correct. I've used the MR for a patch and it's working correctly.

  • mably committed 2f66a105 on 4.x
    Issue #3512695 by mably: doMail(): Argument #1 ($to) must be of type...
mably’s picture

Status: Reviewed & tested by the community » Fixed

Thanks!

Status: Fixed » Closed (fixed)

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