This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

@Email annotation validating correct email format  RSS feed

 
udaya krishna
Ranch Hand
Posts: 65
Firefox Browser Java Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am using @Email annotation in my entity to store an email address.When I enter an email address in the following format it is displaying "Invalid Email Format" eventhough the format is correct:

ABC-GRP-SPE-Test-DL @ap.mydomain.com

Any idea how to fix it? or I have no other way other than built in validation

Thanks
Udaya Krishna.A
 
Maneesh Godbole
Bartender
Posts: 11445
18
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
udaya krishna wrote:
I am using @Email annotation in my entity to store an email address.When I enter an email address in the following format it is displaying "Invalid Email Format" eventhough the format is correct:
ABC-GRP-SPE-Test-DL @ap.mydomain.com

Is that a correct working mail ID? (With the whitespace between the DL and @) If you attempt to send a mail to that id as is (with the white space) is the mail received?
 
udaya krishna
Ranch Hand
Posts: 65
Firefox Browser Java Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Thanks for the quick response.Actually it is a group id which contains a list of email ids.But thank you.That was such a silly mistake while pasting.I guess i was thrown off by the weird format.Its working fine now after removing the space.

Thanks alot
 
Maneesh Godbole
Bartender
Posts: 11445
18
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You are welcome
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!