java javax.mail.SendFailedException 的原因:没有收件人地址错误
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/14272607/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Reasons for javax.mail.SendFailedException: No recipient addresses error
提问by Rani
Could some one please let me know why could we get the following exception.
有人可以让我知道为什么我们会得到以下异常。
javax.mail.SendFailedException: No recipient addresses
Could it be because an address is null or empty? Or something else?
可能是因为地址为 null 或为空?或者是其他东西?
采纳答案by Vinay
As per the documentation found here
根据此处找到的文档
This exception is thrown when the message cannot be sent. The exception includes those addresses to which the message could not be sent as well as the valid addresses to which the message was sent and valid addresses to which the message was not sent
无法发送消息时抛出此异常。例外情况包括消息无法发送到的那些地址以及消息发送到的有效地址和消息未发送到的有效地址