我是用http://www.svnhost.cn/Article/Detail-20.shtml代码发送的,开始时可以发送,发送几封邮件以后,就无法发送了,弹出异常:
异常信息:
异常类型: COMException
异常消息: The message was undeliverable. All servers failed to receive the message
我用的163帐号发送的。谁能解决?
异常信息:
异常类型: COMException
异常消息: The message was undeliverable. All servers failed to receive the message
我用的163帐号发送的。谁能解决?
再加上各大邮件服务商为防垃圾邮件而设置了各种限制.
解决问题,你应新建一个表,邮件列表.在程序中需要发送邮件地址,写入邮件列表中.然后用console application在windows 时间排程序来发送邮件列表的邮件地址,你可以设置时间间隔了.
如果你不想写colsole application的话,也可以用system.Timer来写也行,然后启动事件,放在Golbal.asax的Application_Start()事件中.
按理这么做,如果还被封杀,估计即使加时间延迟也是没用的。
你可以到网上下载winwebemail软件