Jun-26-2024, 08:24 AM
I got the email-validator working from here
https://stackabuse.com/validate-email-ad...validator/
I'm not going to show my email but, real emails do work
https://stackabuse.com/validate-email-ad...validator/
I'm not going to show my email but, real emails do work
from email_validator import validate_email, EmailNotValidError testemails = ['[email protected]', '[email protected]', 'user@[email protected]'] for index, email in enumerate(testemails): try: validate_email(email) print(f'email {index+1}: Valid email') except EmailNotValidError as error: print(f'email {index+1}: {error}')Output
Output:email 1: The domain name site.org does not exist.
email 2: Valid email
email 3: The part after the @-sign contains invalid characters: '@'.
I welcome all feedback.
The only dumb question, is one that doesn't get asked.
My Github
How to post code using bbtags
The only dumb question, is one that doesn't get asked.
My Github
How to post code using bbtags