| p; return null;
return message.Cc.Split(';'); }
public static string[] GetBcc(MailMessage message) { if (message == null) throw new ArgumentNullException("message");
if (Globals.IsNullorEmpty(message.Bcc)) return null;
return message.Bcc.Split(';'); }
#endregion } }
注: 按照常理,使用前先 Open() 一下,使用后也别忘了 Close()
实现方案一(Jmail 组件):
在 .NET 中使用 Jmail 需要如下设置: 1、安装jmail; 2、找到jmail.dll; 3、注册该组件Jmail.dll,作法是将jmail.dll文件拷贝到system32目录下,再运行命令“regsvr32 jmail.dll”(不包括引号),卸载可运行“regsvr32 /u jmail.dll”; 4、执行Program Files\Microsoft Visual Studio .NET\FrameworkSDK\Bin\ildasm.exe(可使用Visual Studio .Net 2003 命令提示), 格式如下:tlbimp c:\Program Files\Dimac\w3JMail4\jmail.dll /out:MyJmail.dll /namespace:MyJmail 生成MyJmail.dll后,将它引用至项目中。
下载组件
接下来就是实现类的编写了:
using System; using System.Web.Mail;
namespace YywMail { public class JMailSmtpMail : MySmtpMail { &nb 上一页 [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] ... 下一页 >> |