Email Address test cases

I've been on many teams in my whole testing career, and for some reason, I always end up getting assigned to validate the email address field.  So after numerous times of hunting down my old email test cases from previous team, I am giving up.  I thought I am just going to list out all of them here out on the internet.  I know that I probably going to have to refer to this list again and again in the future.  Might as well help benefit others like me.

Here is the list of valid and invalid email format which can be used for testing.  The list is not comprehensive by any means, and is probably missing a bunch of edge cases.  However, it provides enough coverage for the majority of the allowed/disallowed email address according to RFC 2822.

BTW, if anyone else would like to contribute more cases to this list, or spot errors (fingers crossed), please feel free to let me know and I'll make sure the list is up-to-date.

Valid Email address Reason Valid email Email contains dot in the address field Email contains dot with subdomain Plus sign is considered valid character
email@ Domain is valid IP address
email@[] Square bracket around IP address is considered valid
"email" Quotes around email is considered valid Digits in address are valid Dash in domain name is valid Underscore in the address field is valid .name is valid Top Level Domain name Dot in Top Level Domain name also considered valid (use as example here) Dash in address field is valid


Invalid Email address Reason
plainaddress Missing @ sign and domain
#@%^%#$@#$ Garbage Missing username
Joe Smith <> Encoded html within email is invalid Missing @ Two @ sign Leading dot in address is not allowed Trailing dot in address is not allowed Multiple dots
あいうえお Unicode char as address (Joe Smith) Text followed email is not allowed
email@domain Missing top level domain (.com/.net/.org/etc) Leading dash in front of domain is invalid
email@domain.web .web is not a valid top level domain
email@111.222.333.44444 Invalid IP format Multiple dot in the domain portion is invalid




List of people who help contribute to help solidify the cases


bernie halpin