I'm not asking about full email validation.
I just want to know what are allowed characters in user-name
and server
parts of email address. This may be oversimplified, maybe email adresses can take other forms, but I don't care. I'm asking about only this simple form: user-name@server
(e.g. [email protected]) and allowed characters in both parts.
I know that a
-z
, 0
-9
, _
, -
, .
(dot) can be used but is there more allowed characters? Maybe +
, $
?
Hope I made my question clear ;-).
Update: if some characters are allowed, but only at specific positions (as is dot in user-name), then this character is just allowed. I don't want full email address validation but simple list (set) of all characters allowed at user-name and server parts. Please don't bother with additional contraints for special positions of specific characters. If character is allowed under some/any/none conditions then it is in the list of allowed chars.
Update2: please give as simple answer as possible - just describe available characters, do not just give link to specs.
Update3: Here is my motivation for exactly such question as I asked... My question may seem stupid as I ask for very simplified conditions of valid email addresses. But with proper answer and very simple implementation of validation with only checking if allowed characters were provided (or not) I will accept all valid email addresses (and many invalid too). I think it is more user friendly than the opposite (implement sophisticated validator that rejects some proper email addresses). Consider +
that Dan Herbert and laura are talking about in comments. This is just example of too constrained implementation of email address validation - and that is annoying!
Second reason is just curiosity - what are the allowed characters taken apart from other validation constraints?