There is an easy option with smtp pop3 instead of using code stage.
1)For smtp/pop3 vbo set flag as True for BodyIsHtml Input.
2) If you want test with static table. Take a html code and paste it in " " and send email it works. Now since we want to get data from collection. We need to add few more steps.
So to add values to table dynamically from collection, instead of manually adding each row dynamically. Take a loop and then calc stage to add Collection rows to the table.
Add the below format in the calc And result store in Data Item "Body"..HTMLHeader will have html code till the table rows are added.
[HTML Header]& "<tr><td>" & [Collection.Col1] & "</td> <td>" & [Collection.Col2] & "</td></tr>" & NewLine()
So this will have collection in loop and iterates till collection ends. so we have the html code for all rows of table and finally we need html end part.
3)Now take one final calculation stage and put the html in " " and data items using &. This Calc is to get all the html pieces together {HTML Header}+{HTML BODY)+{HTML END} and store in "Body"
4)Now use this body to send email.
Note:- Best way is to open w3schools html editor and try diff tags. copy paste same code in Calc between " " and try.
------------------------------
Naga Durga
RPA Modeller
America
------------------------------