mail] PHP/shell script]

Kain kain at kain.org
Fri Aug 15 20:18:30 CDT 2003


On Fri, Aug 15, 2003 at 02:45:46PM -0500, Dave Hull wrote:
> On 15 Aug 2003, brad wrote:
> 
> > > 2) parse the data out stripping all character except the ones you
> > > want to allow.
> 
> This approach is widely considered the "best practice." For email addresses 
> you're probably looking at the following set of characters [0-9A-z_.@] of 
> course, there could be others.

There have been regular expressions implemented that you can test an email
address against to see if it is valid.  Please google for one of these (e-mail
regex) and use that instead of re-inventing the wheel. :)  That way you'll also
be able to handle much of the strange stuff like people with french addresses
using the accented characters in their addresses.
-- 
Bryon Roche
Professional {Developer,Guru,Mad Scientist}
<kain at kain.org>
PGP Key Fingerprint: FE0D EC23 6464 726A CD54  48D3 04AD 86FE 6878 ABD5
Success, recognition, and conformity are the bywords of the modern world where
everyone seems to crave the anesthetizing security of being identified withthe
majority...Human salvation lies in the hands of the creatively maladjusted.
-- Martin Luther King, Jr.





More information about the Kclug mailing list