test if email

brad byte8bits at gmail.com
Fri Oct 12 16:59:14 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?

here's a Perl re example... I don't know whether to laugh or cry... 
don't try to replicate this in Python or you'll hurt yourself. :)

"... the only sure way to see if a supplied email address is genuine is 
to send an email to it and see if the user recieves it."

http://ex-parrot.com/~pdw/Mail-RFC822-Address.html



More information about the Python-list mailing list