System.Net.Mail.SmtpClient.Send/Exchange 延迟
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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
首先要检查的是客户端和 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.