Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EmailAddressValidator no longer available in v7.0.0 #370

Closed
goodale opened this issue Jan 3, 2022 · 3 comments
Closed

EmailAddressValidator no longer available in v7.0.0 #370

goodale opened this issue Jan 3, 2022 · 3 comments

Comments

@goodale
Copy link

goodale commented Jan 3, 2022

after updating pom to use 7.0.0, I am getting 'EmailAddressValidator' cannot be resolved.

@bbottema
Copy link
Owner

bbottema commented Jan 3, 2022

So EmailAddressValidator is from the old underlying validation libray email-rfc2822-validator, which was replaced by the excellent JMail (see #319). So if you used EmailAddressValidator directly, instead you would do something like JMail.isValid(email). Please see https://github.com/RohanNagar/jmail#usage for usage and examples.

I I should probably get on some migration notes and also I pretty much forgot to update the documentation website on this topic. So thanks for that reminder 👍

@bbottema bbottema closed this as completed Jan 3, 2022
@bbottema bbottema changed the title EmailAddressValidator no longer available in v7.0 EmailAddressValidator no longer available in v7.0.0 Jan 3, 2022
@goodale
Copy link
Author

goodale commented Jan 3, 2022

thanks for the quick resolution. I figured it was just a documentation issue and adding JMail and using JMail.isValid works like a charm

@bbottema
Copy link
Owner

bbottema commented Jan 3, 2022

Migration notes for 7.0.0 are up!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants