Click here to Skip to main content
15,884,353 members
Please Sign up or sign in to vote.
1.00/5 (3 votes)
Hi,
I created a C# Windows Form Application and I created a Form called Feedback I want to write some code against Send Button which is able to send email along with the text in the following Text Boxes: Name, Email, Topic and Message. Please can anybody give me that piece of code.?

Regards:
Umer Farooq
Posted
Updated 25-Aug-15 9:36am
v2
Comments
Afzaal Ahmad Zeeshan 25-Aug-15 15:37pm    
Please do not post off-site links.

You can have a look at my article, Sending emails over .NET framework, and general problems – using C# code

1 solution

Did you try to find any code? Simple Google search[^] returns over 3 million hits...

To mention a few:
- Sending an Email in C# with or without attachments: generic routine.[^]
- Sending emails over .NET framework, and general problems – using C# code[^]
 
Share this answer
 
Comments
Afzaal Ahmad Zeeshan 25-Aug-15 15:36pm    
5ed.
Wendelius 25-Aug-15 15:39pm    
Well it did contain your article after all :)

Just kidding, thanks!
Afzaal Ahmad Zeeshan 25-Aug-15 15:44pm    
Frankly, I was gonna say "5ed for doing some SEO for me" but, I didn't.

Same here! ;-)

off-record

I would say, that my article is being used by experts for further teaching and guidance, what more can I ask for? Its paying off. :-)

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