How to send email from code ? [duplicate]
Possible Duplicate:
How to send an email?
I have some simple winform application. In some place in the flow the user have button that if he will press on it the application will send email to some know mail address.
How can i implement this ? How can i send the mail ?
Thanks for any help.
Look at the System.Net.Mail namespace and the SmtpClient class:-
http://msdn.microsoft.com/en-us/library/system.net.mail.smtpclient.aspx
FAQ site with good samples.
http://www.systemnetmail.com/
精彩评论