SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6 - OCEJPAD 6
How To Ask Questions How To Answer Questions
Paul Clapham wrote:I have a strong suspicion that your concern is not merely that the processing of that method terminates normally. I suspect your real question is that even if some of the e-mail addresses are bogus, you want the message to be sent to the remaining good e-mail addresses regardless of that.
Assuming that's the actual background for the post, let me refer you to this part of the JavaMail API documentation. Scroll down and read the description for the "mail.smtp.sendpartial" property. Does that help?
SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6 - OCEJPAD 6
How To Ask Questions How To Answer Questions
The SMTP protocol provider supports the following properties, which may be set in the JavaMail Session object. The properties are always set as strings; the Type column describes how the string is interpreted.
Paul Clapham wrote:And in this case you don't use anything to do with Boolean. If you look again at the documentation which I linked to you'll see this:
The SMTP protocol provider supports the following properties, which may be set in the JavaMail Session object. The properties are always set as strings; the Type column describes how the string is interpreted.
You might want to read the rest of that documentation page while you're at it, too. You never know what you might find in documentation.
Steve Dyke wrote:I beleive I have the sendpartial property set correctly now but still don't have the results I need.
When the address array is being created in the loop I need it to skip bad email addresses.
Paul Clapham wrote:
Steve Dyke wrote:I beleive I have the sendpartial property set correctly now but still don't have the results I need.
I'm not so sure you have it set correctly. Why do you set it to "True" instead of "true"?
When the address array is being created in the loop I need it to skip bad email addresses.
How about if you explain why? It would also help if you explained the technical terms "bad" and "bogus" as applied to e-mail addresses.
Did you see how Paul cut 87% off of his electric heat bill with 82 watts of micro heaters? |