是否可以检测到无法投递的电子邮件? [英] Can an undeliverable email be detected?

查看:172
本文介绍了是否可以检测到无法投递的电子邮件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

问候同行,

我想知道是否有可能检测到发送的电子邮件何时无法送达。



更多细节:< br $>


我的解决方案是使用.net标准框架通过smtp协议发送电子邮件。

i可以确定邮件是否有任何问题是不是,但我不知道电子邮件是否可以实际发送。



你有什么逻辑可以确定电子邮件地址是目标实际上是一个可交付账户?



谢谢:)

Greeting peers,
I am wondering if it is possible to detect when a sent email is undeliverable.

more details:

my solution is using the .net standard framework to send emails via smtp protocol.
i can determine if there is any problems with the mail going out or not, but i can''t tell if the email can actually be delivered.

do you have any logic for how one could determine if the email address being targeted is in fact a deliverable account?

thanks :)

推荐答案

我同意谢尔盖,做这样的事情并不容易你不能确定它是否发送。我宁愿不按你那样的方式去,但如果你确实需要:



这是一种你可能想尝试的方法:



您可以为您的网站图像创建一个httphandler。如果您发送包含至少1个图像的HTML消息,则可以将查询字符串数据嵌入到该图像的末尾。这甚至可能像1x1透明图像。当用户阅读电子邮件时,会将请求发送到服务器以获取图像数据,反过来,您可以捕获该请求并表示该消息已被读取。



但这不是防弹,因为大多数电子邮件客户端默认阻止图像,除非用户指定他们想要查看电子邮件中的图像。



一个链接你可能想读:

所以你想通过代码发送一些电子邮件 [ ^ ]



祝你好运,

OI
Well I agree to Sergey that doing something such like that is not easy and you cannot be sure whether it is send or not. I would rather not to go that way you asked but if you really do need to:

Here is an approach that you might want to try:

You can create an httphandler for your website images. If you send an HTML message which includes at least 1 image, then you could embed querystring data to the end of that image. This could even be something like a 1x1 transparent image. When the user reads the email, this sends the request to the server to fetch the image data, and in turn, you could capture that request and denote that the message was read.

This is not bulletproof however, because most email clients block images by default unless the user specifies they would like to view images in the email.

A link that you might want to read:
So you''d like to send some email through code[^]

Good luck,
OI


不,不幸的是,没有办法。



有些系统可以在某些情况下,可选择向您发送确认或失败消息,但如果您没有收到任何消息,则会发送消息不要告诉你任何事情:它可以交付或不交付。这种失败消息的确认与常规消息没有什么不同;其中一个条件是没有电子邮件地址,但您所处理的域上有一个邮件传递代理,可以向您发送失败消息;这些选项完全取决于网站的所有者/管理员。



-SA
No, unfortunately, there is no a way.

Some system can optionally send you the confirmation or a failure message on certain condition, but if you did not get any message, it does not tell you anything: it could be delivered or not. Such confirmation of failure messages are no different from regular messages; one of the conditions is that there is no a e-mail address, but there is a mail delivery agent on the domain you addressed which can send you the failure message; such options are totally decided by the owner/administrator of the site.

—SA


这篇关于是否可以检测到无法投递的电子邮件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆