Click here to Skip to main content
16,005,222 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Their is a button and textbox on my Winform .I want to send the winform to the address given in textbox on button click.
Posted
Comments
vivektiwari97701 20-Oct-12 4:33am    
:-) at wat Address????? residential or wat??? submit ur code dude and explain clearly......

1 solution

You can't really email a windows form to anyone - generally most email services have filters in place to prevent executable files from being delivered, and even if you did get it through, there is no guarantee that the user can use it. THink about it, you can check your email on a PC, a Mac, an iPad, an Android tablet, a phone, a fridge - and only one of these can open a WinForm object.

Instead, look at sending it as an HTML form or page - that is pretty simple and more likely to work on most systems.

There is a method here that will help you send it: Sending an Email in C# with or without attachments: generic routine.[^]
 
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