Click here to Skip to main content
15,921,716 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi, I want to send an email to a user which should include a simple feedback form(Which includes textboxes and botton), And user should be able to write his feedback and send. Can anyone please help me on this
Posted

In order to add controls to email body, you have to set MailMessage.IsBodyHtml = true. The body has to be in HTML format.

https://msdn.microsoft.com/en-us/library/system.net.mail.mailmessage.isbodyhtml%28v=vs.110%29.aspx[^]

Search for 'send HTML email VB' in google for more references.
 
Share this answer
 
v2
You're not going to get this working, mail clients are going to strip your elements and javascript, or at best make the client jump through various hoops to get it working. Have a feedback form on a website and email them the link along with some token that lets you tie that user to the feedback they send.

Or if this is an internal network and you're using Exchange and Outlook then you might be able to use a custom Outlook Form.
 
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