Skip to content
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

EmailPlugin: Allow easy customization on a per channel basis #2933

Closed
mschipperheyn opened this issue Jul 2, 2024 · 1 comment
Closed

EmailPlugin: Allow easy customization on a per channel basis #2933

mschipperheyn opened this issue Jul 2, 2024 · 1 comment

Comments

@mschipperheyn
Copy link
Collaborator

Is your feature request related to a problem? Please describe.
In a multi channel scenario email look and feel can vary per channel. Currently, the concept of globalTemplateVars presumes a look and feel that is global. You cán pass templateVars on a per EmailEvent basis, but that is not exactly ideal if you want to assure consistency across emails

Describe the solution you'd like
A callback function that allows me to retrieve settings (styles, images, etc) on a per channel basis and apply that to the header and foot fragments.

Describe alternatives you've considered
Placing this information in the templateVars. That requires processing each time you create an EmailEvent. An alternative I'm considering implementing is a wrapper for the EmailEvent that returns the relevant settings and assigns them to the templateVars.

@mschipperheyn
Copy link
Collaborator Author

PR in progress

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant