email syntax validation needed

Chris Burkert christian.burkert at s2000.tu-chemnitz.de
Sun Jun 15 08:52:58 UTC 2003


Derek Brans wrote:
> 
> Does anyone have code (or is there any in the image) which, given a 
> string, returns whether or not that string is a syntactically valid 
> email address?

I have no code but ...

1. You could ask DNS (that could take up to some minutes) if it 
really exists. (check for MX, RR or A)
2. If you have the RePlugin installed you could test if it is a 
regular address, but is doesn't have to exist.
3. You could use the messages of String
4. There are several Open Source or Implementations in other 
Languages like Class Mail_RFC822 of Pear (pear.php.net)

Regards
            Chris Burkert
-- 
http://www.chrisburkert.de/



More information about the Squeak-dev mailing list