{"id":24291,"library":"py3-validate-email","title":"py3-validate-email","description":"Email validator that uses regex pattern, blacklisted domain check, and optional SMTP verification to confirm deliverability. Current version 1.0.5.post2. Released sporadically; last release in 2021.","status":"active","version":"1.0.5.post2","language":"python","source_language":"en","source_url":"https://github.com/karolyi/py3-validate-email","tags":["email","validation","smtp","regex","domain"],"install":[{"cmd":"pip install py3-validate-email","lang":"bash","label":"Install via pip"}],"dependencies":[{"reason":"Used for SMTP checking","package":"dnspython","optional":true}],"imports":[{"note":"Package name differs from import module","wrong":"from py3_validate_email import validate_email","symbol":"validate_email","correct":"from validate_email import validate_email"}],"quickstart":{"code":"from validate_email import validate_email\n\nis_valid = validate_email('test@example.com')\nprint(is_valid)","lang":"python","description":"Basic usage with default settings (only regex check)."},"warnings":[{"fix":"Use 'from validate_email import validate_email'.","message":"The import module is 'validate_email', not 'py3_validate_email'.","severity":"gotcha","affected_versions":"all"},{"fix":"Enable SMTP check by passing smtp_check=True.","message":"The function signature changed in 1.0.0: default is now regex-only, no SMTP check.","severity":"deprecated","affected_versions":">=1.0.0"},{"fix":"Always pass smtp_check=True if you want SMTP verification.","message":"If you omit smtp_check, SMTP verification is disabled even if you provide a from_domain.","severity":"gotcha","affected_versions":">=1.0.0"},{"fix":"Use SMTP check as a hint, not a definitive test; implement retries.","message":"False negative possible: Some valid emails may fail SMTP check due to temporary server issues.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Run: pip install py3-validate-email  then use: from validate_email import validate_email","cause":"Misimporting due to package name vs module name mismatch.","error":"ImportError: No module named 'py3_validate_email'"},{"fix":"Use: validate_email('user@example.com')","cause":"Calling validate_email() without arguments in older versions or incorrect signature.","error":"TypeError: validate_email() missing 1 required positional argument: 'email_address'"},{"fix":"Provide valid from_domain and credentials for SMTP check, or disable smtp_check.","cause":"SMTP check with invalid credentials for from_domain.","error":"smtplib.SMTPAuthenticationError: (535, b'5.7.8 Username and Password not accepted')"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}