It works great, thanks!
manuga β created an issue.
I can't install version 2.1.x-dev for drupal 8, so I attach the patch for version 2.1.1
The patch #15 is not working for me, commented in:
https://www.drupal.org/project/reroute_email/issues/3340298#comment-1493...
π
Not working for contact form and Symfony Mailer
Fixed
Hello sboden,
I tried this patch with composer and i couldn't install:
Could not apply patch! Skipping. The error was: Cannot apply patch https://www.drupal.org/files/issues/2022-07-27/reroute-email-3261831-symfony_mailer-15.patch
So I tried to install the patch directly in the module code and when i submit the contact form I got this error:
TypeError: Argument 1 passed to reroute_email_mailer_build() must be an instance of EmailInterface, instance of Drupal\symfony_mailer\Email given in reroute_email_mailer_build() (line 375 of modules/contrib/reroute_email/reroute_email.module).
So I changed this lines:
use Drupal\symfony_mailer\EmailInterface;
function reroute_email_mailer_build(EmailInterface $email) {
To
use Drupal\symfony_mailer\Email;
function reroute_email_mailer_build(Email $email) {
And i got the reroute email correctly
There is something rong with the EmailInterface but i don't know what it is.
manuga β created an issue.
manuga β created an issue.