等待高人:
我做了个发邮件的程序,现在想把数据库里取出来的EMAIL验证是否在网络中存在 ,不然发不出去会有很多垃圾邮件啊。 // make sure we use the local SMTP server
SmtpMail.SmtpServer="";
// create mail message object
MailMessage oMessage = new MailMessage();
// set some properties
oMessage.BodyFormat = MailFormat.Text;
oMessage.Priority = MailPriority.High;
oMessage.From = "[email protected]";
oMessage.To = dr1["email"].ToString(); //收件人
if(!System.Text.RegularExpressions.Regex.IsMatch(email,@"\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"))
{
//没有验证成功
}
这个只是验证EMAIL的格式,但不能验证EMAIL是否在网络中存在嘛
我做了个发邮件的程序,现在想把数据库里取出来的EMAIL验证是否在网络中存在 ,不然发不出去会有很多垃圾邮件啊。 // make sure we use the local SMTP server
SmtpMail.SmtpServer="";
// create mail message object
MailMessage oMessage = new MailMessage();
// set some properties
oMessage.BodyFormat = MailFormat.Text;
oMessage.Priority = MailPriority.High;
oMessage.From = "[email protected]";
oMessage.To = dr1["email"].ToString(); //收件人
if(!System.Text.RegularExpressions.Regex.IsMatch(email,@"\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"))
{
//没有验证成功
}
这个只是验证EMAIL的格式,但不能验证EMAIL是否在网络中存在嘛
解决方案 »
- 急需一个asp.net上传视频的组件
- 求教,pagemethods的一点疑问?
- 怎么实现通过电子证书登录系统?
- |zyciis| 多个数据库进行操作的时候怎么来处理他们的完整性 也就是单个数据库用事务,出错可以RollBack 谢谢大家
- 各位老大,问一个问题:如何实现这样的效果?
- ASP.NET中如何实现在客户端上传EXCEL文件,并且读出EXCEL文件的内容?
- DataGrid:请教高手,如何将一行中的某个字段存到Session中!
- 连接数据老是连不上,请帮我看看,谢谢
- 关于清华出版社出版的“微软.NET程序设计系列”之《ADO.NET程序设计》的问题,大家来讨论一下
- ASP.net程序和数据库的问题
- 我在任务计划(排定的工作)里怎么让我的邮件程序每天自动运行?
- ASP.net程序发布问题
地址 http://ws.cdyne.com/emailverify/ev.asmx?WSDL
怎么调用不用我说了吧
{
//没有验证成功
}