Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1928152
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T06:56:38+00:00 2026-05-17T06:56:38+00:00

Is there any python function that validates E-mail addresses, aware of IDN domains ?

  • 0

Is there any python function that validates E-mail addresses, aware of IDN domains ?
For instance, user@example.com should be as correct as user@zääz.de or user@納豆.ac.jp

Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-17T06:56:39+00:00Added an answer on May 17, 2026 at 6:56 am

    Django supports IDN email validation as of version 1.2.

    See the code for validation here: http://code.djangoproject.com/svn/django/trunk/django/core/validators.py

    Reference: http://docs.djangoproject.com/en/1.2/ref/forms/fields/#emailfield

    Example:

    Python 2.6.5 (r265:79063, Apr 16 2010, 13:57:41) 
    [GCC 4.4.3] on linux2
    Type "help", "copyright", "credits" or "license" for more information.
    >>> from django.core.validators import validate_email
    >>> try: validate_email(u'user@example.com'); print "passed"
    ... except: print "failed"
    ... 
    passed
    >>> try: validate_email(u'user@zääz.de'); print "passed"
    ... except: print "failed"
    ... 
    passed
    >>> try: validate_email(u'user@納豆.ac.jp'); print "passed"
    ... except: print "failed"
    ... 
    passed
    >>> try: validate_email(u'this-should-fail@@納豆.ac.jp'); print "passed"
    ... except: print "failed"
    ... 
    failed
    

    You may need to define some environment settings before you can use Django modules, see documentation here: http://docs.djangoproject.com/en/dev/

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is there any build-in function in Python that merges two lists into a dict?
Is there any function in Python that I can use to insert a value
Are there any Python JSON parsers that will cope with trailing commas? (I'm consuming
Are there any Python modules that will let me get access to NFS quota
Are there any modules for Python, that can be used as a TFTP server?
Is there any api/lib for python that will get me the synonyms of a
Are there any Python libraries that help parse and validate numeric strings beyond what
Is there any python code that allow take a latex code (for equations) and
Using Boost.Python, is there a way to call a Python function that's been passed
Is there any way (hack) to push Python function (def) to return results by

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.