I have faced this issue when i am trying to send an Image from the Send Mail control or the User Task Control (Part where we configure custom mail for the user).
What i want to do is send an image file in the body of mail content. I do not see an attach file control or anyother way to do so.
My Approach: I write the content in an Outlook mail with the images and everything, copy and paste directly on the Body Pane of the Mail control in K2.
The paste happens but once i click ok i get the error message.
Any assistacne appreciated!!
Best answer by VerManiac
Ok so this is for the community.
I did some R&D and came up with a work around for it. Follow steps below if you need an image in mail body.
1- Add the image in some Library or list from where you can create a SmartObject to access it. What i did is added it to "Site Assets" Library of SharePoint.
2- Create SmartObject for this Library.
3- Add a "Create Reference" in your workflow and create a reference for the SO we just created.
4- Expand the Mail control using the drop down (as in the image attached) and now add "Document" from the Reference we just created.
5- In the body section add :
<img src="MailTest.png" alt="MailTest">
6- Save and deploy the workflow.
Now the image will come in outlook as an embedded image, something that was needed to be done.
Any improvements or suggestions are more than welcome!!