E-mail template and internationalization missing for action "UPDATE_EMAIL" in Keycloak - keycloak

Keycloak Version 20.0.2
The bug
There is no e-mail template for action UPDATE_EMAIL. I've downloaded the .jar from /opt/keycloak/lib/lib/main/org.keycloak.keycloak-themes-20.0.2.jar and checked the \base\email\html directory.
As you can see on that image https://imgur.com/a/w8IS7Kv there is no e-mail template for the action UPDATE_EMAIL.
Also, there is no internationalization for the action UPDATE_EMAIL. As you can see on this image https://imgur.com/tlFYHt9 I've used "Deutsch" as language but the text is english.
Expected behavior
There should be an e-mail template for the action UPDATE_EMAIL.
Internationalization should work for the action UPDATE_EMAIL.
Actual behavior
An e-mail template for the action UPDATE_EMAIL is missing.
Internationalization is not working the action UPDATE_EMAIL.
Issue on Github
I've created an issue on Github: https://github.com/keycloak/keycloak/issues/16173

Related

Where can I find the template of the email that is sent with the Invoice to a customer?

The customer in Netsuite gets an email with the generated invoice attached as a pdf. The requirement is to change the body of the email. I am unable to locate the template that has this info to modify. Please advise.
The current body of the email is:
"Please open the attached file to view your Invoice.
To view the attachment, you first need the free Adobe Acrobat Reader. If you don't have it yet, visit Adobe's Web site http://www.adobe.com/products/acrobat/readstep.html to download it."
`Customize-->Transaction Forms-->Whichever invoice form you're using`.
Under this form you should be able to choose which email template to send.
To find this email template,
Customize-->Transaction form PDF/HTML layouts
Under this menu you should be able to select and customize the email template however you want. Make sure the template you edit corresponds to the template that is showing on the form.
You may need to or have the desire to enable advanced/PDF/HTML templates, which allows you to edit and customize forms in a much more robust fasion using HTML/XML/CSS, Freemarker, and BFO. (See suiteanswers: 48703)
I know the original post is several years old, but I too found myself searching for answers recently in stackoverflow so I thought I would post the answer to this questioon.
Use the global search bar to type in Email Template. You can customize from there. I've attached a screenshot that replaces the generic message
"Please open the attached file to view your Invoice.
To view the attachment, you first need the free Adobe Acrobat Reader. If you don't have it yet, visit Adobe's Web site http://www.adobe.com/products/acrobat/readstep.html to download it."
It has been awhile since I found and got this email template to work, so it is possible there may be another section where you have to set the preference to use this customized email template.

Silverstripe workflow $Context.AbsoluteEditLink not working

I have created a workflow by following this guide https://userhelp.silverstripe.org/en/3.1/optional_features/setting_up_advancedworkflow/setting-up-workflows/
However when I add $Context.AbsoluteEditLink to the notification email content field the url doesn't appear (nothing is shown) in the resulting email. I have checked elsewhere but cant find any answer.

Sending email of dashboard view (Jenkins)

I have installed the "Dashboard view" plugin on Jenkins. It generates reports as expected. I'd like to notify other team members of these reports via email. I tried using the email-ext plugin and went through the editable email notification option. But, I couldn't figure out how to attach these reports (generated in the dashboard view). Is something like this possible to do and can someone please guide me how this can be done?
Any help would be appreciated. Thanks in advance. :)
Not familiar with "Dashboard view" but I do remember if you use post-build step from email-ext, you can specify the "Attachment" field in "Advanced settings".
If the report generated by "Dashboard view" is an HTML file or some other readable file, I think you can just put the path to the "Attachment" field. If it is something like a json or xml, feel like you should send them the link to the report on Jenkins (usually it is just the link shown in your browser when you view this report).

Keycloak's FreeMarker email template

I'm using Keycloak to send a forgot password email, and from what I've read on their docs and the FreeMarker docs, it seems like I should be able to use HTML tags just fine. However, when I use them in the password-rest.ftl file, it renders the whole tag like so:
<p>Some Text</p>
instead of just showing: Some Text
I found this (https://issues.jboss.org/browse/KEYCLOAK-681) saying that Keycloak can only send plain text emails, and I just wanted to see if anyone knew for sure since I have found some stuff that looks like the HTML tags should be usable How do you block emails from appearing as links in FreeMarker?
Any advice or thoughts on this would be greatly appreciated.
There are two sub-directories containing templates for emails. They are called text and html. When you want HTML you need to edit templates located in html directory.
Keycloak itself sends emails as multi-part messages containing both plain-text and HTML versions - email client decides which one is displayed.
I am not familiar with Keycloak, but somehow you should set the Mime type of your e-mail to "text/html" (e.g. have a look at this Stack Overflow answer).
Which version of Keycloak are you using? Comparing the source code of 'FreeMarkerEmailProvider' in tag 1.2.0.Final and on branch 1.3.x lets me assume that Keycloak is able to handle text/html at least from version 1.3.x on.
But again: I am not familiar with Keycloak...

Custom email notification with link - sitecore

I created a workflow as below, i want to send email with the link to the content approvers group when something is submitted? Can someone point me from where should i start with? which is the function that should be overridden ? Any help is appreciated
Thanks,
GT
Here is a good example of how to create a custom workflow email that can be sent to users in a particular Sitecore role (and the user who last edited the content item).
http://techmusingz.wordpress.com/2014/04/25/workflow-notifications-in-sitecore-roles-and-users/
You can link to a specific content item in the Sitecore client using the following method but you need to already be logged in to the Sitecore client for this to work (Otherwise you are just directed to the Sitecore login page and won't be redirected to the item after login).
/sitecore/shell/Applications/Content%20Manager/default.aspx?fo={id}&la={language}&vs={version}&mo=preview
fo - The item to open in the Sitecore client
la - The language to open (optional)
vs - The version to open (optional)
mo - preview
(optional)