-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[Mailer] \Symfony\Component\Mailer\Event\MessageEvent never consumed #31449
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Labels
Comments
Update: Symfony\Component\Mailer\EventListener\MessageListener:
tags: ['kernel.event_subscriber']
Symfony\Component\Mailer\EventListener\EnvelopeListener:
tags: ['kernel.event_subscriber'] For event |
Update2: Symfony\Component\Mailer\EventListener\MessageListener:
tags: ['kernel.event_subscriber']
arguments:
$renderer: '@twig.mime_body_renderer' |
fabpot
added a commit
that referenced
this issue
May 10, 2019
This PR was merged into the 4.3 branch. Discussion ---------- [TwigBundle] Fix Mailer integration in Twig | Q | A | ------------- | --- | Branch? | 4.3 | Bug fix? | yes | New feature? | no <!-- please update src/**/CHANGELOG.md files --> | BC breaks? | no <!-- see https://symfony.com/bc --> | Deprecations? | no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files --> | Tests pass? | yes <!-- please add some, will be required by reviewers --> | Fixed tickets | #31449 | License | MIT | Doc PR | n/a <!-- Replace this notice by a short README for your feature/bugfix. This will help people understand your PR and can be used as a start for the documentation. Additionally (see https://symfony.com/roadmap): - Bug fixes must be submitted against the lowest maintained branch where they apply (lowest branches are regularly merged to upper ones so they get the fixes too). - Features and deprecations must be submitted against the master branch. --> Commits ------- 53b68af [TwigBundle] fixed Mailer integration in Twig
I'm using 5.4 LTS and this event is never fired. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Symfony version(s) affected: 4.3.0-BETA1
Description
When sending email using a new
symfony/mailer
component an event\Symfony\Component\Mailer\Event\MessageEvent
us dispatched.Mailer component has two subscribers for this event:
\Symfony\Component\Mailer\EventListener\MessageListener
\Symfony\Component\Mailer\EventListener\EnvelopeListener
but non of them are fired in case of an event.
Command
bin/console de:ev
also doesn't shows these listeners.How to reproduce
execute
method something like:This exception raised because
\Symfony\Component\Mailer\EventListener\MessageListener
was not fired.Possible Solution
¯\_(ツ)_/¯
Additional context
symfony/messenger
is installed with default configurationsymfony/swiftmailer-bundle
is not installedThe text was updated successfully, but these errors were encountered: