- Issue created by @manuga
Can you try the last patch from https://www.drupal.org/project/reroute_email/issues/3261831 β¨ Support symfony_mailer, which doesn't use hook_mail_alter Fixed
- πͺπΈSpain manuga
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. - Status changed to Needs review
about 1 year ago 1:26pm 27 November 2023 - πΊπ¦Ukraine abyss
It seems that this has already been fixed in issue β¨ Support symfony_mailer, which doesn't use hook_mail_alter Fixed .
@bohart, could you please confirm this? - Status changed to Fixed
about 1 year ago 8:43pm 28 November 2023 - πΊπ¦Ukraine bohart Lutsk, Ukraine
@Abyss, thanks for your time on testing!
@manuga, please use the latest 2.3.x dev release of this module (it includes all needed fixes), or please wait a couple of weeks for the 2.3.1 release.
NB: At least version 1.4.0 of Drupal Symfony Mailer should be installed to work both modules properly.Marking this issue as Fixed. Please re-open it or create a new one (if something is still not working).
Thanks! Automatically closed - issue fixed for 2 weeks with no activity.