发送电子邮件并检查状态 [英] send e-mail and check status

查看:210
本文介绍了发送电子邮件并检查状态的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用Java邮件,我想发送电子邮件并检查状态。可能的状态包括:

Using Java mail, I would like to send an e-mail and check the status. Possible statuses include:


  • 硬反弹:找不到邮件服务器

  • 软反弹:邮件服务器发现,但没有找到帐户

  • 成功

甚至可以发送e - 邮件,并按照上述方式获取有关传送尝试的一些反馈意见。

Is it even possible to send an e-mail and get some feedback about the delivery attempt in the manner I've described above?

编辑:被访者建议寻找一个Java图书馆提供与 ListNanny 相同的功能。我已经搜索过,但没有找到任何东西。任何想法,如果这样的图书馆存在?

A respondent suggested looking for a Java library that provides the same functionality as ListNanny. I've searched around, but haven't found anything. Any idea if such a library exists?

干杯,
Don

Cheers, Don

推荐答案

你不能可靠地或一贯地做到这一点。如果您的本地邮件服务器将其传递到公司外出的邮件服务器,然后在该服务器尝试传递该邮件服务器时会弹出,会发生什么?如果邮件服务器无法与其他邮件服务器通话,然后邮件在4天后超时,会发生什么?

You can't do this reliably or consistently. What happens if your local mail server passes it onto a corporate out-going mail server, and then it bounces when that server tries to pass it on? What happens if the mail server can't talk to the other mail server and then the message times out after 4 days?

这篇关于发送电子邮件并检查状态的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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