简体   繁体   English

了解Microsoft的CDO.Message脱机行为

[英]Understanding Microsoft's CDO.Message offline behavior

I'm using the CDO.Message class to create and send an email from a Visual FoxPro application. 我正在使用CDO.Message类从Visual FoxPro应用程序创建和发送电子邮件。 I've tested that it works while the user is connected to the internet, and it even seems to work when I send while disconnected from the network , it simply gets sent when the client gets reconnected. 我已经测试了它在用户连接到Internet 时可以正常工作,甚至当我在断开网络连接的情况下发送时,它似乎也可以工作 ,当客户端重新连接时,它就可以发送了。 One issue I have with the .Send() method of the CDO.Message class is that it does not return any success/fail value (although the object will throw an exception if it cannot send). 我对CDO.Message类的.Send()方法有一个问题,就是它不返回任何成功/失败值(尽管如果对象无法发送,它将抛出异常)。 The email message never appears to be waiting in the user's Outlook "Outbox" or anything obvious like that, but yet it seems to be waiting somewhere for a web connection at which time it sends. 电子邮件似乎从来没有在用户的Outlook“发件箱”中等待,或者类似的明显等待,但是似乎在某处等待发送时的Web连接。

The question I have is: Where does the CDO.Message email I've called .Send() on go while the application is offline? 我的问题是: 当应用程序处于脱机状态时,我叫.Send()的CDO.Message电子邮件在哪里? And does it have an eventual timeout/fail condition? 并最终有超时/失败情况吗?

I'm trying to avoid " programming by coincidence " any clues on how CDO.Message works would be helpful. 我正在尝试避免“ 巧合编程 ”有关CDO.Message的工作原理的任何线索都是有帮助的。

Unless you explicitly specify otherwise, you are using an SMTP server on the local machine. 除非明确指定,否则您将在本地计算机上使用SMTP服务器。 If so, the application will drop the message in the local SMTP server's outbound queue, and your application's call to Send() will always be successful (if your SMTP server is running and your message is properly formatted). 如果是这样,则应用程序会将邮件放入本地SMTP服务器的出站队列中,并且您的应用程序对Send()的调用将始终成功(如果SMTP服务器正在运行并且邮件的格式正确)。 You can set the Outbound Expiration timeout property in the SMTP service to specify how old messages can be before they are dropped from the outbound queue. 您可以在SMTP服务中设置“出站过期超时”属性,以指定将旧邮件从出站队列中删除之前的状态。

LSoft has a nice guide for configuring the SMTP service in IIS 6 for use with their LISTSERV package. LSoft有一个不错的指南,用于在IIS 6中配置SMTP服务以与其LISTSERV软件包一起使用。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 CDO.Message和System.Net.Mail之间的区别 - Difference between CDO.Message and System.Net.Mail 来自CDO.Message发送方法的未知电子邮件代码 - Unknown email code from CDO.Message send method 修改CDO.Message对象中附件的内容类型 - Modifying the content type of an attachment in a CDO.Message object 设置CDO.Message选项时使用的f(x)= y JScript惯用语的JavaScript友好替代方法 - JavaScript-friendly alternative to the f(x) = y JScript idiom that's used when setting CDO.Message options CDO.Message .Send导致脚本执行超时 - CDO.Message .Send causes script execution timeout CDO.Message Email 来自 VBA 中的 Office 365 帐户 - CDO.Message Email from Office 365 Account in VBA 使用 CDO.Message 发送电子邮件 - 发送到外部地址时失败 - sending email using CDO.Message - fails when sending to external address Excel VBA-通过CDO.message发送电子邮件-无法添加附件 - Excel VBA - Send Email via CDO.message - cannot add attachment 是否可以使用SQL数据库邮件通过URL通过HTML页面发送HTML页面,就像在VBScript中使用CDO.Message对象一样? - Can I use SQL Database Mail to send an HTML page as a message via its URL, the same way you can with the CDO.Message object in VBScript? 未发送CDO消息,并且消息的附件也无法删除 - The CDO message is not sent and the message's attached file is not free to delete
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM