Hi Vignesh,
there's a module in the appstore for sending emails in Mendix.
This would be a much better implementation than sending emails through the html snippet widget
https://appstore.home.mendix.com/link/app/259/
You can set up templates to use for sending emails, and you can fill every attribute dynamically if you need to. I suggest checking it out.