-
Notifications
You must be signed in to change notification settings - Fork 219
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
EmailInfo TemplateParameters are ignored #1342
Comments
Hi, it is not a bug, template parameters used only if you provide template path. Body always inserted as is. We could improve it in the future releases, but there are no concrete plans for now. |
Ok. that's a little bit odd and misleading API (-: |
Will at least add JavaDoc soon and document current behaviour there |
Can create a pull request for this? The caption / subject should also be compiled with the object. |
Sure, feel free to create PR! |
PR: #1345 |
Hi,
I think this is a bug.
I am setting the template params as the following:
emailInfo.setTemplateParameters(Collections.singletonMap("name","test name"));
this is the body content
emailInfo.setBody("<b>test ${name}</b>");
the email arriving is:
<b>test ${name}</b>
and not as expected<b>test name</b>
;Could it be that
TemplateParameters
is ignored when no providing template path?thanks
The text was updated successfully, but these errors were encountered: