开发者

How to send email from code ? [duplicate]

开发者 https://www.devze.com 2023-03-28 14:40 出处:网络
This question already has answers here:开发者_开发问答 Closed 11 years ago. Possible Duplicate: How to send an email?
This question already has answers here: 开发者_开发问答 Closed 11 years ago.

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/

0

精彩评论

暂无评论...
验证码 换一张
取 消