|
一直想写一个asp能用发送邮件的服务器组件,不过用VC太麻烦了,一直都没都手。
前两天看一篇文章,说是asp怎么调用C#写的DLL,一试之下,果然可以,大喜,这下用来写一个发送邮件的东东简单了吧。
呵呵,非常简单,一会就弄好了,不敢独享,先看代码:
view plaincopy to clipboardprint?
- using System;
- using System.Net.Mail;
- using System.Text;
-
- namespace IMELS
- {
- public class SendMail
- {
- public SendMail() { }
-
- private string _to = string.Empty;
-
- /// <summary>
- /// 收件人地址,多个用“,”号隔开
- /// </summary> &nbs
[1] [2] [3] [4] [5] [6] [7] [8] [9] [10] ... 下一页 >>
|