简体   繁体   English

如何获取电子邮件发送失败的所有收件人的电子邮件ID

[英]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.

相关问题 如何发送附件带有扩展名的电子邮件 - How to send an email whose attachment has an extension on delivery 如何在 Spring 中向多个收件人发送电子邮件 - How to send an email to multiple recipients in Spring 如何将批量电子邮件发送到其他电子邮件ID - How to send a Bulk email to different email ID's 如何提高电子邮件发送和交付可靠性? - How to improve email sending and delivery reliability? Amazon SimpleEmail:如何检查电子邮件是否已发送? - Amazon SimpleEmail: how to check if an Email has been delivered? 如何举杯说“电子邮件已成功发送”的消息? - How to toast a message said that the “email message has been sent successfully”? 如何从 Firebase 更新 email? UpdateEmail 方法已被弃用 - How to update email from Firebase? UpdateEmail method has been deprecated 如何检查网站是否已更新并发送电子邮件? - How to check whether a website has been updated and send a email? 在 Android (Java) 中,从包含当前用户的 email 地址的文档中获取所有评论 - In Android (Java) get all reviews from documents which contain the current user's email address 尝试向 email 地址列表发送邮件时出错(该地址的 email Id 无效) - Error when trying to send a mail to a list of email addresses (which has an invalid email Id)
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM