aspose file tools*
The moose likes Other JSE/JEE APIs and the fly likes javax.mail.SendFailedException: Invalid Addresses; nested exception is: com.sun.mail.smtp.SMTPAddres Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Bookmark "javax.mail.SendFailedException: Invalid Addresses; nested exception is: com.sun.mail.smtp.SMTPAddres" Watch "javax.mail.SendFailedException: Invalid Addresses; nested exception is: com.sun.mail.smtp.SMTPAddres" New topic
Author

javax.mail.SendFailedException: Invalid Addresses; nested exception is: com.sun.mail.smtp.SMTPAddres

Farakh khan
Ranch Hand

Joined: Mar 22, 2008
Posts: 732
Hello,



The above code works fine but when there is any error it stops and not sending to the rest of the listed emails.

I want if there is any error with any email address then it ignore this email address and send email message to the rest of the emails. Please advise

Thanks in anticipation
Wayan Saryada
Ranch Hand

Joined: Feb 05, 2004
Posts: 105

Is that the correct properties? I think the property should be something like "mail.host" or "mail.smtp.host" to define the SMTP server address.


Website: Learn Java by Examples
Farakh khan
Ranch Hand

Joined: Mar 22, 2008
Posts: 732
Its working fine for me
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18564
    
    8

Farakh khan wrote:I want if there is any error with any email address then it ignore this email address and send email message to the rest of the emails. Please advise


Sure, I think that's one of the documented properties. Check here for a complete list of SMTP-related properties: https://javamail.java.net/nonav/docs/api/com/sun/mail/smtp/package-summary.html
Farakh khan
Ranch Hand

Joined: Mar 22, 2008
Posts: 732
You mean: SMTPAddressSucceededException: This exception is chained off a SendFailedException when the mail.smtp.reportsuccess property is true.


Is that you mean?

Best regards
Farakh khan
Ranch Hand

Joined: Mar 22, 2008
Posts: 732
Thanks from the bottom of my heart
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: javax.mail.SendFailedException: Invalid Addresses; nested exception is: com.sun.mail.smtp.SMTPAddres