Embed images in emails from Power Automate Desktop
I had a case recently, that the mail sent from Power Automate Desktop must’ve had images displayed within the body. However, no such option is available from user interface. Still, it is possible!
Content-ID to the rescue!
The trick is to use CID within the body. How to do it? In the below simple steps:
- Be sure you switched on option, that “Body is HTML”,
- Add attachments you want to sent together with these you want to display within the body,
- Inside body HTML code, use
<img src="cid:[name of the attachment with extension]" />together with all other HTML properties you need.
And that’s it! Once you send the mail and open it in Outlook, attachments which are referenced by
cid inside the body, won’t be visible under the attachments section of the e-mail (they are hidden).
In the GIF below you can see that once triggered RPA is does a screenshot of a region within my blog, then sends it via Outlook. Next, Outlook message is opened to show that the screenshot is indeed embed and not visible as attachment.
Now it’s your turn! 🙂