Datatable in mail

How to display the datatable in mail body


Use Output DataTable activity and convert that DataTable into string and pass that string into mail body to write into it.

Will it look like table with data in it


Yes it will look like table but it is without table borders.

I need it with border


You need to format a string with html table tags with your datatable data, then by enabling IsBodyHtml as true in the mail, you can send the mail with Html table format as a html email message.

check this link to convert the datatable to html table.


Please check below thread.