[英]How to get email Id's of all the recipients to which email delivery has been failed
I am using javamail API and i want to get email id's of all the recipients to which email delivery has failed.How to achieve this using this API.I used get all recipients option but it returns only the email id via which email is sent. 我正在使用javamail API,我想获取向其发送电子邮件失败的所有收件人的电子邮件ID。如何使用此API实现此目的。我使用了``获取所有收件人''选项,但它仅返回通过其发送电子邮件的电子邮件ID。 I am using google SMTP server.Thanks! 我正在使用google SMTP服务器。谢谢!
You'll want to read these JavaMail FAQ entries: 您将需要阅读以下JavaMail FAQ条目:
In addition, see the smtpsend.java sample program , which will show you how to catch and process the exceptions thrown when sending a message, for those (rare) cases when the SMTP server reports the failure synchronously. 另外,请参见smtpsend.java示例程序 ,该示例程序将向您显示如何捕获和处理在SMTP服务器同步报告故障的(罕见)情况下发送消息时引发的异常。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.