System.Net.Mail.SmtpClient.Send/Exchange 延迟

发布于 2024-08-14 02:00:56 字数 429 浏览 1 评论 0原文

C# 应用程序使用 System.Net.Mail.SmtpClient.Send 发送电子邮件 应用程序的日志文件显示 Send 方法在 11:39 成功 当我在 Outlook 中打开电子邮件并执行“文件|属性”时,它显示 发送时间:上午 11:39 收到:上午 11:41

如果我转到 View|Options ,标题会显示: 已收到:来自 XXX,由 YYY 使用 Microsoft SMTPSVC [...] 11:41:15 [...] 日期:2009年12月9日11:38:51 [...] X-OriginalArrivalTime: [...] 11:41:15.0250

所以我的问题是 - 如果 Send 方法在 11:39 返回,但服务器只在 11:41 收到它,那么电子邮件在哪里花费了 2 分钟? 换句话说,是否需要在运行应用程序的计算机或 Exchange 服务器上配置某些内容?

The C# application sends an email using System.Net.Mail.SmtpClient.Send
The application's log file shows that the Send method succeeded at 11:39
When I open the email in Outlook and do File|Properties, it shows
Sent: 11:39 AM
Received: 11:41 AM

If I go to View|Options , the headers show:
Received: from XXX by YYY with Microsoft SMTPSVC [...]
11:41:15
[...]
Date: 9 Dec 2009 11:38:51
[...]
X-OriginalArrivalTime: [...] 11:41:15.0250

So my question is - if the Send method came back at 11:39, but the server only received it at 11:41, where did the email spend the 2 minutes?
In other words, is there something that needs to be configured on the machine that runs the application or on the Exchange server?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

仙女 2024-08-21 02:00:56

首先要检查的是客户端和 Exchange 服务器的时间是否同步。通常,当像 Exchange 这样的服务器在时间上不同步时,会出现更明显的问题,但也可能会出现几分钟的中断,并且一段时间内不会被注意到。

The first thing to check is that the client and Exchange server have their times in sync. Usually there's more noticeable problems when a server like Exchange is out of sync time-wise, but it's possible to be a couple minutes off and not be noticed for a while.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文