Validate E-Mail with Python

You can use lepl to check if the given E-Mail format is correct for the time being according to the RFC 3696 method.

pip install lepl
import lepl.apps.rfc3696
email_validator = lepl.apps.rfc3696.Email()

if email_validator("[email protected]"):
    print "OK"

From StackOverflow However, if the e-mail address is not correctly RFC compliant, such as DoCoMo, such as consecutive periods, it may be False. True returned that there was only one period before @.

Recommended Posts

Validate E-Mail with Python
Send email with Python
Send Japanese email with Python3
[Automation] Send Outlook email with Python
Easy email sending with haste python3
[Python] Send an email with outlook
Send email via gmail with Python 3.4.3.
Python 3.6 email library
FizzBuzz with Python3
Scraping with Python
Statistics with python
Scraping with Python
Python with Go
[Python] Send email
Twilio with Python
Play with 2016-Python
Tested with Python
[Python] Send email
with syntax (Python)
Bingo with python
Excel with Python
Microcomputer with Python
Cast with python
HTML email with image to send with python
I tried sending an email with python.
Send an email with Amazon SES + Python
Serial communication with Python
Zip, unzip with python
Django 1.11 started with Python3.6
Primality test with Python
Python with eclipse + PyDev.
Socket communication with Python
Data analysis with python 2
Scraping with Python (preparation)
Try scraping with Python.
Learning Python with ChemTHEATER 03
Sequential search with Python
"Object-oriented" learning with python
Run Python with VBA
Handling yaml with python
Solve AtCoder 167 with python
Serial communication with python
[Python] Use JSON with Python
Learning Python with ChemTHEATER 05-1
Learn Python with ChemTHEATER
1.1 Getting Started with Python
Binarization with OpenCV / Python
3. 3. AI programming with Python
Kernel Method with Python
Send an email to Spushi's address with python
Non-blocking with Python + uWSGI
Scraping with Python + PhantomJS
Posting tweets with python
Drive WebDriver with python
Use mecab with Python3
Voice analysis with python
Think yaml with python
Operate Kinesis with Python
Getting Started with Python
Use DynamoDB with Python
Zundko getter with python