Click here to Skip to main content
15,921,694 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
hey there
i want to create a form in order to get information from users, including text boxes, DropDownLists and a submit button. the way it works is that, when the user clicks on submit button, the data from controllers will be sent to my email address. but there is a problem in this process, i don’t know how to arrange the entered datas in a way that i receive them as a table in my email.
Posted
Comments
virusstorm 16-Jun-15 14:42pm    
Can you provide any code to help us understand what you trying to accomplish?

1 solution

If you are good in HTML, then you can create a table based in HTML, and enter the values to it. This way your table would be generated using your own data. After that, tell the framework that your email body is in HTML format,

C#
mailMessage.IsBodyHtml = true;


Read more about IsBodyHtml on MSDN[^]. Want to know how to send the emails in .NET framework also? Read this article of mine: Sending emails over .NET framework, and general problems – using C# code[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900