Sometimes we might need to send the emails which will contain the tabular data in it…
This small HTML template can help you in inserting tabular structure inside the mail body.
Implementation using UiPath :
In the Html Template file provided, Add the required number of “tags” for the required number of rows inside the table.
Drag “Read Text File“ activity into the designer panel and provide the html file path to it.
Read the Html Content into a String Variable UserData.
Drag “Assign“ activity into the designer panel and Use the Replace method to replace the “varXXX” values with the respective variables to pass the data dynamically.
Drag “Send Outlook Mail Message“ activity into the designer panel and try to provide the required property fields i.e SUBJECT,TOMAIL e.t.c along with the “UserData” Variable that we have with us from the above steps performed and check the property “IsBodyHtml” .
Click here to download the Source Code…
Hope it has helped youâ€¦