Email template with smileys in Mendix

0
Hi, a customer wants a email-template with feedback smileys (see image below for an example). When you click the smileys it needs to go back to Mendix with a deeplink. How can I make this in Mendix?  
asked
2 answers
1

Hi Ben,

You can use the HTML tab in the email template and insert the link using the Anchor tag. If the URL is dynamic you can use placeholders for it. 

I hope this will help you!

 

answered
1

HI Ben Oelderik,

It is possible to introduce a Button or a smiley as you wanted. Ou can use CKEditor Widget as in your email template Configuration. The CK editor attribute should map to the HtmlBody parameter of the email template.

You can write the HTML code and make the template design.

Below is the sample code where we have introduced a button with a Href tag. the URL for the href tag is passed as a token.

{%url%}.

This token can be replaced by replacing token java action which is present in the email Module flow. The URL can be created in the microflow and then be replaced. 


<tbody>
<tr>
<td style="background-color:#48248f; text-align:center"><a href="{%url%}" style="background: #48248f; border: 15px solid #48248f; font-family: tahoma; font-weight: 10; letter-spacing: 2px; mso-height-rule: exactly; line-height: 10px; text-align: center; text-decoration: none; display: block; border-radius: 3px; font-weight: 10; text-transform: uppercase;">&nbsp;&nbsp;&nbsp;&nbsp;<span style="color:#ffffff">Click Here</span>&nbsp;&nbsp;&nbsp;&nbsp; </a></td>
</tr>
</tbody>

 

 

Hope this works. Good Luck!!

answered