Email format…

Examples

Valid email addresses

· niceandsimple@example.com

· very.common@example.com

· a.little.lengthy.but.fine@dept.example.com

· disposable.style.email.with+symbol@example.com

· other.email-with-dash@example.com

· user@[IPv6:2001:db8:1ff::a0b:dbd0]

· "much.more unusual"@example.com

· "very.unusual.@.unusual.com"@example.com

· "very.(),:;<>[]\".VERY.\"very@\\ \"very\".unusual"@strange.example.com

· postbox@com (top-level domains are valid hostnames)

· admin@mailserver1 (local domain name with no TLD)

· !#$%&’*+-/=?^_`{}|~@example.org

· "()<>[]:,;@\\\"!#$%&’*+-/=?^_`{}| ~.a"@example.org

· " "@example.org (space between the quotes)

· üñîçøðé@example.com (Unicode characters in local part)

Invalid email addresses

· Abc.example.com (an @ character must separate the local and domain parts)

· A@b@c@example.com (only one @ is allowed outside quotation marks)

· a"b(c)d,e:f;g<h>i[j\k]l@example.com (none of the special characters in this local part is allowed outside quotation marks)

· just"not"right@example.com (quoted strings must be dot separated, or the only element making up the local-part)

· this is"not\allowed@example.com (spaces, quotes, and backslashes may only exist when within quoted strings and preceded by a backslash)

· this\ still\"not\\allowed@example.com (even if escaped (preceded by a backslash), spaces, quotes, and backslashes must still be contained by quotes

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s