如何生成退回电子邮件通知,其中包含一些额外信息

发布于 2024-09-13 18:58:22 字数 343 浏览 9 评论 0原文

我现在才开始研究这个问题,目前还没有什么成果。所以,我希望你们能帮助我,或者为我指出某种方向。

我所处的情况是,我需要以某种方式能够检测到失败的电子邮件发送和/或退回的电子邮件。然后,我需要能够发送一封描述此故障的通知电子邮件,并在通知电子邮件中包含一些其他特定信息。

目前,我真的不知道该怎么做。我们现在的电子邮件系统涉及一些 C#.NET 托管代码,它们通过 SMTP Exchange 服务器发送电子邮件。因此,我最初的想法是,我也许可以使用电子邮件标头信息来完成此操作,但我不太熟悉所有可用的电子邮件标头。我也完全不反对寻找和使用某种第三方解决方案,但同样,我不熟悉任何此类解决方案或解决方案提供商,因此我也非常愿意接受那里的建议。

I am just now beginning to research this, and so far haven't come up with much. So, I'm hoping you guys can help me, or point me in some sort of direction.

I am in a situation in which I need to somehow be able to detect a failed email delivery and/or bounced-back email. Then, I need to be able to sent out a notification email describing this failure, as well as include some other, specific information in the notification email as well.

At the moment, I really have no idea how to do this. The email system we have now involves some C#.NET managed code, which send the email via an SMTP Exchange server. So, my initial thoughts are that I might be able to use email header information to accomplish this, but I'm not terribly family with all of the available email headers. I am also not at all opposed to finding and using some sort of third-party solution, but again, I'm not familiar with any such solutions or solution providers, and so I am very open to suggestions there too.

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

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

发布评论

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

评论(3

转瞬即逝 2024-09-20 18:58:22

您使用 SMTPClient 类吗?如果是这样,则 SmtpFailedRecipientsException 可以帮助您完成所需的任务。

此处提供的示例和更多信息:

http://msdn .microsoft.com/en-us/library/system.net.mail.smtpfailedrecipientsexception.aspx

Are you using the SMTPClient class? If so, there's a SmtpFailedRecipientsException that would help you accomplish what you need.

Examples and further information given here:

http://msdn.microsoft.com/en-us/library/system.net.mail.smtpfailedrecipientsexception.aspx

白芷 2024-09-20 18:58:22

不确定您是否要从 IMAP 服务器或 POP3 服务器下载邮件。如果是这种情况,您可能需要查看Ultimate Bounce Inspector 组件。它还允许您处理 EML 文件。

Not sure if you want to download messages from an IMAP server or a POP3 server. If it's the case, you may want to check out the Ultimate Bounce Inspector component. It also let you process EML files.

静待花开 2024-09-20 18:58:22

您可以使用 PostMark 它允许您以编程方式处理退回的电子邮件。

You can use PostMark which allows you to programmatically process bounced emails.

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