Skip to content

Fix the notification email theme for asynchronously dispatched emails #48092

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

Merged
merged 1 commit into from
Nov 4, 2022

Conversation

krisbuist
Copy link
Contributor

Q A
Branch? 4.4
Bug fix? yes
New feature? no
Deprecations? no
License MIT

When the \Symfony\Component\Mailer\Messenger\SendEmailMessage is dispatched asynchronously, the email message is serialised and unserialised. The theme that was set on the NotificationEmail was not included in the serialisation, causing the value to return back to the default after deserialisation.

When the `\Symfony\Component\Mailer\Messenger\SendEmailMessage` is dispatched asynchronously, the email message is serialised and unserialised. The theme that was set on the `NotificationEmail` was not included in the serialisation, causing the
value to return back to the default after deserialisation.
@carsonbot carsonbot added this to the 4.4 milestone Nov 3, 2022
@krisbuist krisbuist changed the title Fix the notification email theme for asynchronously dispatched emails [TwigBridge] Fix the notification email theme for asynchronously dispatched emails Nov 3, 2022
@carsonbot
Copy link

Hey!

I think @maxailloud has recently worked with this code. Maybe they can help review this?

Cheers!

Carsonbot

@carsonbot carsonbot changed the title [TwigBridge] Fix the notification email theme for asynchronously dispatched emails Fix the notification email theme for asynchronously dispatched emails Nov 4, 2022
@fabpot
Copy link
Member

fabpot commented Nov 4, 2022

Thank you @krisbuist.

@fabpot fabpot merged commit e1641da into symfony:4.4 Nov 4, 2022
@krisbuist krisbuist deleted the fix-async-notification-email-theme branch November 4, 2022 07:23
@fabpot fabpot mentioned this pull request Nov 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants