Solved

K2 Five HTML Notification

  • 12 December 2017
  • 2 replies
  • 13 views

Hi,

 

Is there a way to construct personalized html notifications with images in K2 Five?

 

Thanks

icon

Best answer by khanh1 21 December 2017, 20:55

View original

2 replies

Userlevel 6
Badge +16

Hi,


 


I did a quick test with Send Email step and it seems to work. Perhaps, it will work with notifications too.


 


1.  Figure out where you want to store the images. For this example, I'm using SharePoint Image library to store the images.


https://portal.denallix.com/ImagesLibrary/K2_logo.png


2. Add Send Email step and use <img src> in the Email Body 


<div> 
<img src="https://portal.denallix.com/ImagesLibrary/K2_logo.png" alt="K2 Test Logo">
</div>

 



 


3. The email will look like this from the end user.


Hi khanh, I tried your solution and is working.

 

There is a problem with that, so if you put HTML with linebreaks then as you can see in your email the image is moving down because of the line breaks.

 

We found 2 solutions for that:

 

  1. Linearize html to avoid this line breaks
  2. Put html in a variable to avoid the line breaks in the text editor

Both solutions are working.

 

Thanks again!

Reply