Reputation: 98270
I expect this should be a pretty easy question. It is in two parts:
Upvotes: 8
Views: 2768
Reputation: 27045
Judging from the specs the first part can be case sensitive, but normally it's not.
Since it's all ASCII you should be safe using a "naive" uppercase function.
Check out the RFC spec part of the wikipedia article on E-mail adresses
If you're in for some heavier reading RFC5322 and RFC5321 should be useful too.
Upvotes: 13
Reputation: 5426
Email address are not case sensitive.
The local-part of the e-mail address may use any of these ASCII characters:
- Uppercase and lowercase English letters (a-z, A-Z)
- Digits 0 through 9
- Characters ! # $ % & ' * + - / = ? ^ _ ` { | } ~
Character . provided that it is not the first nor last character, nor may it appear two or more times consecutively.
Source :Wikipedia
Upvotes: 0
Reputation: 29559
The local-part of the email address (i.e. before the @
) is case-sensitive in general. From the Wikipedia entry on E-mail address:
The local-part is case sensitive, so "[email protected]" and "[email protected]" may be delivered to different people. This practice is, however, discouraged by RFC 5321. However, only the authoritative mail-servers for a domain may make that decision.
For the detailed specifications, you may wish to consult the following RFCs:
Upvotes: 7
Reputation: 4159
domain names are case insensitive. so [email protected] is the same email as [email protected]
for user names, it depends of the mail server. in the Outlook server my company uses it is also case insensitive
Upvotes: 4