Hi,
I have a requirement where I want to send an email with an attachment. This attachment should be of html format and should have attachmentcontent(an image) as an image in html. This attachmentContent is output of previous Kusto query.
I have a similar problem and tried your thing.
But there is a fault at my flow: The response is not a JSON format?
Thanks a lot for the pointers, I solved the problem by directly consuming AttachmentContent in my compose "Body" formula and it works.
Thanks for responding, This is very helpful, however my image file is a JPEG image which is the out put of previous step.
This AttachmentContent is a JPEG file which I am trying to embed, but this is not working.
Attaches screenshot:
HI @swetaag2011,
Could you please share a screenshot of your flow's configuration?
Do you want to include the image into a html file and display it in the html file?
If you want to include the image into a html file and display it in the html file, I have made a test on my side and please take a try with the following workaround:
The formula within src property as below:
body('Get_file_content')?['$content']Add a "Send an email" action, Attachments Name field set to Test.html and Attachments Content field set to output of "Compose" action.
Image reference:
The flow works successfully as below:
The html file opens successfully as below:
Best regards,
Kris