- Issue created by @srees
- Merge request !95Issue #3515884: Handle blank 'To' field when setting headers β (Open) created by Unnamed author
We are using the Drupal Symfony Mailer in combination with Workflow Notifications (and the reroute_email_symfony_mailer IS enabled). Our workflow notification emails appear to use the 'BCC' field instead of the 'To' field, which generates an error from reroute_email complaining that
"TypeError: Drupal\reroute_email\Plugin\RerouteEmailHandler\HookMailAlter::setHeader(): Argument #2 ($value) must be of type string, null given"
Install and enable modules listed above. Create a workflow that sends notification to author and additional role when a node's state is changed. (sorry, lots of setup!) Trigger notification by changing the status of a node to trigger the workflow.
Modify RerouteEmailHandlerPluginBase.php to handle the case of a blank 'To' field similar to the Cc and Bcc fields
Active
2.3
Code