Hello Karuna,
Probably it has to do with the HTML format of the mail, can you debug it and see how that format looks like, what you can do to match the format with what you created is to use an editor, either a rich text editor or ck editor.
https://marketplace.mendix.com/link/component/74889
https://marketplace.mendix.com/link/component/1715
These editors translate your input into html.
Hope this helps,
Good luck!
Hey ,
It helped me, Thank you.
It also shows the text editing options which needs to be removed if concerned .
Regards,
Karuna