CDO.Message 和 System.Net.Mail 之间的区别
我已经使用 System.Net.Mail 通过 C#.net 应用程序实现了电子邮件群发系统。
以前,该系统是使用 CDO.Message 通过 VB 脚本实现的。
在我部署新系统并运行它进行爆破(发送电子邮件)后,我在生产 SMTP 服务器中遇到了异常(处理消息数超出每个连接的最大数量时出错)。
我知道这个错误是由于 SMTP 服务器设置造成的,但我的客户认为以前的 VB 脚本可以使用此 SMTP 服务器设置。
这就是为什么我想知道CDO.Message和System.Net.Mail之间的区别,例如是否有连接会话的控制等
请给我建议。谢谢。
I've implemented email blasting system with C#.net application using System.Net.Mail.
Previously, this system was implemented with VB Script using CDO.Message.
After I deployed my new system and run it for blasting(sending emails), I got the exception(Error in processing Number of messages exceeds maximum per connection) in production SMTP Server.
I know that this error is because of the SMTP server setting, but my client argues that the previous VB script can work with this SMTP Server setting.
That's why I want to know the difference between CDO.Message and System.Net.Mail, for instance, is there control of connection sessions, etc.
Please kindly advise me. Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
“CDO”是用于发送邮件的 COM 实现,而“System.Net.Mail”是使用 SMTP(通常是到另一个邮件服务器的中继)发送邮件的托管方式。您可能会发现同时发送大量电子邮件会受到限制,因为服务器只能处理这么多电子邮件。并发请求 - 类似于高速公路在同一时间只能处理有限数量的汽车。
'CDO' is a COM implementation for sending mail whereas 'System.Net.Mail' is a managed way to send mail using SMTP (which is typically a relay to another mail server). You are likely to find limitations in sending a larger number of concurrent emails with both as a server can only handle so many. Concurrent requests - similar to a highway only being able to handle a finite number of cars at any one time.