The spec for this is in RFC 2821, page 36:

http://www.imc.org/rfc2821

You may also want to check out page 30 of the older RFC (821) which may be a bit 
easier to understand.

http://www.imc.org/rfc821

At any rate, characters in an email address (unless escaped by a "\") can be any one 
of the 128 ASCII characters, but
not any
<special> or <SP>

Specials are defined as:

"<" | ">" | "(" | ")" | "[" | "]" | "\" | "." | "," | ";" | ":" | "@"  """ | the 
control characters (ASCII codes 0
through 31 inclusive and 127)

So, the "_" and "-" are valid.

HTH,

--
Howie Hamlin - inFusion Project Manager
On-Line Data Solutions, Inc. - www.CoolFusion.com  - 631-737-4668 x101
inFusion Mail Server (iMS) - The Award-winning, Intelligent Mail Server
>>> Find out how iMS Stacks up to the competition: 
>http://www.coolfusion.com/imssecomparison.cfm


----- Original Message -----
From: "Chris Lofback" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Wednesday, July 10, 2002 10:41 AM
Subject: RE: Best e-mail regex?


> This code permits addresses like "[EMAIL PROTECTED]" and "mailto:[EMAIL PROTECTED].  Are they
> valid?  Which leads me to the question:  where can I find the specs for what
> characters are allowed in what places in a properly formatted email address?
> I looked through the RFCs but couldn't find this--or maybe I didn't look in
> the right ones.  Can anybody point me in the right direction?
>
> Thanks,
> Chris Lofback
> Sr. Web Developer
>
> TRX Integration
> 28051 US 19 N., Ste. C
> Clearwater, FL  33761
> www.trxi.com
>

______________________________________________________________________
This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to