The patForms-Rule Email allows to validate input strings to be valid e-mail addresses
Test some valid addresses
The following addresses are all valid according RFC.
Form.Rule.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 |
See how other systems check email addresses
The following addresses are invalid according to some subscriber but valid in our system.
Form.Rule.Email | ||
validate() | errorMessage() | |
irjltrills+foo@gmail.com | true | |
ddordicad+foo@gmail.com | true | |
+43190543560301@orangemail.sk | true | |
trickybit100+foo@gmail.com | true | |
pascal.claudie+NERO@googlemail.com | true | |
giania.lopez.alhandra+foo@gmail.com | true | |
hans+hansine.wurst@online.de | true | |
bauer+foo@fg-networking.de | true | |
truus+loogman@live.nl | true | |
teopanait+foo@gmail.com | true | |
schuhmann01+foo@gmail.com | true | |
romeo+julia@online.de | true | |
kiasderan+foo@breen.net | true | |
t+@online.de | true | |
hhb.leferink+foo@gmail.com | true | |
greg@kvi.travel | true | |
karlo.kater+foo@gmail.com | true | |
h+e.gesdas@online.de | true | |
deathlykitten+linux@gmail.com | true | |
Mike.Nobleprice+Nero@Gmail.com | true | |
jpx.sigart+foo@gmail.com | true | |
capiani+foo@gmail.com | true | |
xxnicholasxx+foo.com@gmail.com | true | |
+4919458995156@orangemail.sk | true | |
spawn.fergie@vianet.travel | true | |
djevriech+foo@gmail.com | true | |
all57p+foo@gmail.com | true |
Nowadays there a many top level domains
Form.Rule.Email | ||
validate() | errorMessage() | |
test@example.doesnotexits | true | |
test@example.work | true |
The following address uses a way to long domain name.
Form.Rule.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. |
The following addresses have some other problems with the domain-part
Form.Rule.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. |
The following addresses have some trouble with unquoted local-part
Form.Rule.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. |
The following addresses have some trouble with quoted local-part
Form.Rule.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. |
fit.Summary |