test if email

kyosohma at gmail.com kyosohma at gmail.com
Fri Oct 12 22:14:37 CEST 2007


On Oct 12, 2:55 pm, Florian Lindner <Florian.Lind... at xgm.de> wrote:
> Hello,
> is there a function in the Python stdlib to test if a string is a valid
> email address?
>
> Thanks,
>
> florian

What do you mean? If you're just testing the construction of the email
address string, then it's pretty easy. If you want to know if the
email address is live and works, the only way to reliably find that
out is to send a test email there to see if it goes through or
bounces.

Here's an interesting article on the topic, which is completely non-
Python related:

http://www.oreillynet.com/onlamp/blog/2002/12/how_to_validate_an_email_addre.html

Mike




More information about the Python-list mailing list