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

Simple validation fails :( #104

Open
tamilvjm opened this issue Nov 28, 2019 · 3 comments
Open

Simple validation fails :( #104

tamilvjm opened this issue Nov 28, 2019 · 3 comments

Comments

@tamilvjm
Copy link

Hi,

I have just validated with simple invalid email and it is showing as valid one. Could you explain and fix?

`>>> from validate_email import validate_email

is_valid = validate_email('example@example.com')
is_valid
True
is_valid = validate_email('example@example')
is_valid
True

`

@JSquar
Copy link

JSquar commented Jan 10, 2020

validate_email('example@example') without setting verify attribute to True only evaluates if the mail conforms with the general mail regex.

@ps91
Copy link

ps91 commented Apr 2, 2020

validate_email('example@example') without setting verify attribute to True only evaluates if the mail conforms with the general mail regex.

Shouldn't the general mail regex assume that after the "@" there's at least "letters" "dot" "letters" once?

@b4stien
Copy link

b4stien commented Apr 4, 2022

Shouldn't the general mail regex assume that after the "@" there's at least "letters" "dot" "letters" once?

No, it can not assume that. You can be delivering mail to "localhost", or you can have a special DNS that does not have a tld (the part after the dot).

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

No branches or pull requests

4 participants