test if email

Florian Lindner Florian.Lindner at xgm.de
Fri Oct 12 17:04:58 EDT 2007


 kyosohma at gmail.com wrote:

> 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

Answer to everybody:

I was just asking for the correct syntax of the mail address. I know about
the various problems actually impossibility to test for a live and valid
address.

Regards,

Florian



More information about the Python-list mailing list