1.首先下载Jmail安装包
2.在VS2005中,右击网站根目录,选择“添加引用”3.在浏览选项卡中,在Jmail安装目录下添加JMail.dll,在Bin目录下可以发现多了一个“Interop.jmail.dll”4.代码使用:首先要引用这个命名空间:using jmail;MessageClass message = new MessageClass();message.Charset = "gb2312";message.From = "guodong-828@163.com"; //发件人地址message.Subject = "Jmail使用……"; //标题message.HTMLBody = "测试一下!!";message.MailServerUserName = "guodong-828"; //邮件服务器用户名(即邮件用户名)message.MailServerPassWord = "**********"; //邮件服务器密码message.AddRecipient("guodong828@126.com", "", ""); //收件人地址message.Send("smtp.163.com", false); //SMTP服务器地址Response.Write("JMAIL发送成功!");