Win a copy of Java Concurrency Live Lessons this week in the Threads forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

AddressException  RSS feed

 
Andy Smith
Ranch Hand
Posts: 239
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What are the email address validations performent by the javamail ?

What r the conditions in which javax.mail.internet.InternetAddress will throw AddressException ?
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
According to the javadocs, if the address can't be parsed (i.e. is not in a valid fromat), does not conform to RFC-822, or -in the case of a list of addresses- if the individual addresses can't be separated out from the list. Do you have a particular address that fails?
 
Andy Smith
Ranch Hand
Posts: 239
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Its not the particular address...

Just that I am thinking of using this in the application, so wanted to tell the client before hand about the email address validation

Thanks for ur reply
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!