- Issue created by @mvonfrie
- Status changed to Postponed: needs info
about 1 month ago 7:45am 25 January 2025 - 🇬🇧United Kingdom adamps
I'm confused. It seems that you have a site without configuration for mail plugin instances and you are calling
getInstance()
then complaining that it fails😃. I suggest you should either configure the instances or prevent the call.Therefore, the MailManagerReplacement should override getInstance() and return the correct instance which must be an implementation of Drupal\Core\Mail\MailInterface.
But how could we do that? This module has no information about what would be a correct instance of a mail plugin.
- 🇦🇹Austria mvonfrie
It is more a problem with Webform module doing it's own mail handling and it doesn't know about symfony_mailer. So maybe it is more a problem of Webform than Symfony Mailer. But Symfony Mailer should handle this case, maybe defaulting to
symfony_mailer
because the core implementation of course doesn't know about Symfony Mailer. - 🇬🇧United Kingdom adamps
Symfony mailer doesn't have any implementation
Drupal\Core\Mail\MailInterface
, and has no reason to create one. What would such an implementation even do? I feel this is a won't fix, or perhaps set to Webform.Either you need to create
system.mail
configuration on your site, or persuade the Webform maintainers to change their module to work without this configuration. It's not really related to this module, which neither requires nor creates the legacy config.