Click here to Skip to main content
16,012,316 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am trying to create an windows application which have a textbox and a button by C#.Now I want to send that textbox value to a specific email address when the button is clicked.But i have no idea about this because i am new in C#.But it is badly needed in my project.How can i do that pleace anyone help me.
Posted

1 solution

This is fairly easy to do.

You'll need to have a reference to System.Net and you'll be using the classes in the System.Net.Mail namespace (classes are MailMessage and SmtpMail). Have your SMTP credentials handy.

Once you get in there you'll find it's very straightforward. There's also tons of help on Google (and here on CP).

Cheers.
 
Share this answer
 
Comments
Shamim.emon08 20-Sep-10 13:15pm    
Reason for my vote of 5
Automatic vote of 5 for accepting 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