Hello,
You need to utilize the Razor parsing here. First of all create a razor view (an email template ".cshtml").
Then use the Razor parsing, passing the viewmodel with the properties and then render that as Email HTML template and send.
Please follow the below link:
Render Email Templates Using Razor Engine[
^]
Nady Blog: Asp.Net MVC Razor Email Template[
^]
The second link is not formatted properly, but still you can refer.
Thanks