Test Form Rule: Email

The patForms-Rule Email allows to validate input strings to be valid e-mail addresses

Positive Test

Test some valid addresses

The following addresses are all valid according RFC.

Form.Rule.Email
email validate() errorMessage()
abc@example.com true  
y@x.com true  
y@x.org true  
y@x.tv true  
Abc@example.com true  
Abc@EXAMPLE.COM true  
abc@www.example.com true  
abc@a.example.com true  
abc@a0.example.com true  
abc@1www.example.com true  
abc@2domain3.example.com true  
abc@3.example.com true  
abc@a-b.example.com true  
abc@another.sub.domain.example.com true  
aBC@example.com true  
abc.123@example.com true  
1234567890@example.com true  
_______@example.com true  
abc+mailbox/department=shipping@example.com true  
!#$%&'*+-/=?^_`.{|}~@example.com true  
"abc@def"@example.com true  
"Joe Doe"@example.com true  
"test()[];:"<>@example.com true  
"()test[];:"<>@example.com true  
abc\@def@example.com true  
abc\@def\@xyz@example.com true  
test\@\@@example.com true  
abc\"def@example.com true  
joe\(The\ User\)Doe@example.com true  
joe\(\ \)Doe@example.com true  
joe\\@example.com true  
jean-philippe.e\"scaffre@wanadoo.fr true  

Other People's Test

See how other systems check email addresses

The following addresses are invalid according to some subscriber but valid in our system.

Form.Rule.Email
email validate() errorMessage()
irjltrills+foo@gmail.comtrue 
ddordicad+foo@gmail.comtrue 
+43190543560301@orangemail.sktrue 
trickybit100+foo@gmail.comtrue 
pascal.claudie+NERO@googlemail.comtrue 
giania.lopez.alhandra+foo@gmail.comtrue 
hans+hansine.wurst@online.detrue 
bauer+foo@fg-networking.detrue 
truus+loogman@live.nltrue 
teopanait+foo@gmail.comtrue 
schuhmann01+foo@gmail.comtrue 
romeo+julia@online.detrue 
kiasderan+foo@breen.nettrue 
t+@online.detrue 
hhb.leferink+foo@gmail.comtrue 
greg@kvi.traveltrue 
karlo.kater+foo@gmail.comtrue 
h+e.gesdas@online.detrue 
deathlykitten+linux@gmail.comtrue 
Mike.Nobleprice+Nero@Gmail.comtrue 
jpx.sigart+foo@gmail.comtrue 
capiani+foo@gmail.comtrue 
xxnicholasxx+foo.com@gmail.comtrue 
+4919458995156@orangemail.sktrue 
spawn.fergie@vianet.traveltrue 
djevriech+foo@gmail.comtrue 
all57p+foo@gmail.comtrue 

Top Level Domains

Nowadays there a many top level domains

Form.Rule.Email
email validate() errorMessage()
test@example.doesnotexits true  
test@example.work true  

Negative Test

Negative Test, Part 1

The following address uses a way to long domain name.

Form.Rule.Email
email validate() errorMessage()
test@this.domain.name.is.way.to.long.to.be.valid.because.only.two-hundred-fifity-five.characters.are.allowed.still.it.is.plenty.of.space.to.fill.to.create.a.simple.test.entry.anyhow.there.are.so.many.things.to.tell.but.no.one.would.belive.them.of.course.i.myself.would.never.believe.it.example.com false The domain part of the e-mail address must not exceed 255 characters.

Negative Test, Part 2

The following addresses have some other problems with the domain-part

Form.Rule.Email
email validate() errorMessage()
test.example.com false The e-mail address must contain one "@" symbol.
test@example..com false The domain part of the e-mail address must not contain two successive periods.
test@with space.example.com false The domain part of the e-mail address may not contain blanks.
abc@-sub.domain.example.com false The domain part "-sub" of the e-mail address has an invalid format.
abc@sub-.domain.example.com false The domain part "sub-" of the e-mail address has an invalid format.
abc@1sub-.domain.example.com false The domain part "1sub-" of the e-mail address has an invalid format.

Negative Test, Part 3

The following addresses have some trouble with unquoted local-part

Form.Rule.Email
email validate() errorMessage()
@example.com false The local part of the e-mail address may not be empty.
test@test@example.com false The local part of the e-mail address may not contain any "@" (if not quoted).
test\@test@test@example.com false The local part of the e-mail address may not contain any "@" (if not quoted).
test@@example.com false The local part of the e-mail address may not contain any "@" (if not quoted).
test@\@@example.com false The local part of the e-mail address may not contain any "@" (if not quoted).
test.@example.com false The local part of the e-mail address may not end with dot ".".
test..abc@example.com false The local part of the e-mail address may not contain successive periods (if not quoted).
test[abc@example.com false The local part of the e-mail address contains characters that need to be quoted.
test]abc@example.com false The local part of the e-mail address contains characters that need to be quoted.
test(abc@example.com false The local part of the e-mail address contains characters that need to be quoted.
test)abc@example.com false The local part of the e-mail address contains characters that need to be quoted.
test\abc@example.com false The local part of the e-mail address contains characters that need to be quoted.
test:abc@example.com false The local part of the e-mail address contains characters that need to be quoted.
test;abc@example.com false The local part of the e-mail address contains characters that need to be quoted.
test"abc@example.com false The local part of the e-mail address contains characters that need to be quoted.
.test@example.com false The local part of the e-mail address may not start with dot ".".
()[];:<>@example.com false The local part of the e-mail address contains characters that need to be quoted.
test.Ä.abc@example.com false The local part of the e-mail address may not contain any umlauts.
test.ß.abc@example.com false The local part of the e-mail address may not contain any umlauts.

Negative Test, Part 4

The following addresses have some trouble with quoted local-part

Form.Rule.Email
email validate() errorMessage()
"test@example.com false The local part of the e-mail address is not quoted correctly.
"test.ä.abc"@example.com false The local part of the e-mail address may not contain any umlauts.
"test.€.abc"@example.com false The local part of the e-mail address may not contain any umlauts.
"test.ø.abc"@example.com false The local part of the e-mail address may not contain any umlauts.
"tes"t"@example.com false The local part of the e-mail address contains characters that need to be quoted.
""tes"t"@example.com false The local part of the e-mail address is not quoted correctly.
"\"test"\"t"@example.com false The local part of the e-mail address contains characters that need to be quoted.

Summery of Test Results

fit.Summary