Problem/Motivation
When activating the "Disable the site email address" option, mailer "To" seems to be empty if there are only
Adhoc email addresses stablished, Drupal fails and content won't be created of modified.
The website encountered an unexpected error. Please try again later.
Drupal\Core\Entity\EntityStorageException: Invalid address: (to): in Drupal\Core\Entity\Sql\SqlContentEntityStorage->save() (line 810 of core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php).
PHPMailer\PHPMailer\PHPMailer->addAddress('', '') (Line: 287)
Drupal\smtp\Plugin\Mail\SMTPMailSystem->mail(Array) (Line: 307)
Drupal\Core\Mail\MailManager->doMail('content_moderation_notifications', 'content_moderation_notification', '', 'en', Array, NULL, 1) (Line: 179)
Steps to reproduce
Activate "Disable the site email address" in a workflow notification, set any Adhoc email addresses, trigger this workflow notification.
Proposed resolution
If most people is using this patch, they can be manually setting the "To", hence avoiding this issue, but this is still a work in progress and I don't need that much functionalities:
https://www.drupal.org/project/content_moderation_notifications/issues/2...
π±
Support Twig, TO, CC, BCC, FROM, REPLY-TO, SUBJECT, Message, Abort, Debugging and Tips
Active
Tried mailsystem to force SMTP treat (just in case), didn't work:
https://www.drupal.org/project/content_moderation_notifications/issues/2... β