Hi
I have images in a folder and I want to attach all image in email body.
Number of images are dynamic.
Please help
Hi
I have images in a folder and I want to attach all image in email body.
Number of images are dynamic.
Please help
Thanks Nithin. But Not able to understand
I am using smtp
Can you please tell me step by step
Yes I can see
I want screenshots in the email body
Oh @Sana_Afreen
You want it in email body okay… got it…
So now, What I can understand is @Sana_Afreen
You want to embed images one by one in the email body ?
Use Directory.GetFiles
from the image folder
Loop through each file & convert it to base 64
Frame a mail HTML body, one sample - <img src='data:image/gif;base64,/9j/4AAQSkZJRgABAgEAYABgAAD...' />
Pass this body into the mail activity and enable the BodyAsHtml
Hope this helps.
Thanks
#nK
For each item in directory
Inside body what I have to write
Hey @Sana_Afreen
You need to do the Step 2 & Step 3
Convert the image to Base 64 string
Frame and append the HTML string as mentioned above
Thanks
#nK
Not able to achieve
How to convert image to base64
Can you please write the code and share it
For each activity Type argument is Object
After than in assign activity what will I write
Hey @Sana_Afreen
Let me write a small sample and share. Thanks
#nK