Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Test list of Valid and Invalid Email addresses
Use: for testing against email regex
ref: http://codefool.tumblr.com/post/15288874550/list-of-valid-and-invalid-email-addresses
List of Valid Email Addresses
email@example.com
firstname.lastname@example.com
email@subdomain.example.com
firstname+lastname@example.com
email@123.123.123.123
email@[123.123.123.123]
"email"@example.com
1234567890@example.com
email@example-one.com
_______@example.com
email@example.name
email@example.museum
email@example.co.jp
firstname-lastname@example.com
List of Strange Valid Email Addresses
much.”more\ unusual”@example.com
very.unusual.”@”.unusual.com@example.com
very.”(),:;<>[]”.VERY.”very@\\ "very”.unusual@strange.example.com
List of Invalid Email Addresses
plainaddress
#@%^%#$@#$@#.com
@example.com
Joe Smith <email@example.com>
email.example.com
email@example@example.com
.email@example.com
email.@example.com
email..email@example.com
あいうえお@example.com
email@example.com (Joe Smith)
email@example
email@-example.com
email@example.web
email@111.222.333.44444
email@example..com
Abc..123@example.com
List of Strange Invalid Email Addresses
”(),:;<>[\]@example.com
just”not”right@example.com
this\ is"really"not\allowed@example.com
@Rony64742

This comment has been minimized.

Copy link

Rony64742 commented Dec 18, 2017

ok

@matousburda

This comment has been minimized.

Copy link

matousburda commented Jan 3, 2019

ok

@tgrossen

This comment has been minimized.

Copy link

tgrossen commented Mar 8, 2019

ok

@edgar971

This comment has been minimized.

Copy link

edgar971 commented Mar 8, 2019

ok

@agarrharr

This comment has been minimized.

Copy link

agarrharr commented Mar 8, 2019

ok

@dFlores-vendini

This comment has been minimized.

Copy link

dFlores-vendini commented Mar 12, 2019

ok

@toddwashere

This comment has been minimized.

Copy link

toddwashere commented Mar 20, 2019

ok

@jccr

This comment has been minimized.

Copy link

jccr commented Mar 21, 2019

ok

@RobertHodan

This comment has been minimized.

Copy link

RobertHodan commented Mar 21, 2019

ok

@beetai

This comment has been minimized.

Copy link

beetai commented Mar 21, 2019

ok

@d-srd

This comment has been minimized.

Copy link

d-srd commented Apr 5, 2019

ok

@neillfontes

This comment has been minimized.

Copy link

neillfontes commented Apr 16, 2019

ok

@kolbykskk

This comment has been minimized.

Copy link

kolbykskk commented Apr 18, 2019

ok

@robcmills

This comment has been minimized.

Copy link

robcmills commented May 21, 2019

ok

@geevb

This comment has been minimized.

Copy link

geevb commented May 28, 2019

ok

@rvmladenov

This comment has been minimized.

Copy link

rvmladenov commented Jun 12, 2019

nice

@bradleymarques

This comment has been minimized.

Copy link

bradleymarques commented Jun 14, 2019

ok

@belgiancoder

This comment has been minimized.

Copy link

belgiancoder commented Jun 19, 2019

ok

@owens106

This comment has been minimized.

Copy link

owens106 commented Jun 21, 2019

ok

@sj-freitas

This comment has been minimized.

Copy link

sj-freitas commented Jul 2, 2019

ok

@RubenMateus

This comment has been minimized.

Copy link

RubenMateus commented Jul 2, 2019

ok

@Narayon

This comment has been minimized.

Copy link

Narayon commented Jul 2, 2019

ok

@nerdaliciousCH

This comment has been minimized.

Copy link

nerdaliciousCH commented Jul 3, 2019

ok

@mvpowers

This comment has been minimized.

Copy link

mvpowers commented Jul 22, 2019

ok

@wrong-about-everything

This comment has been minimized.

Copy link

wrong-about-everything commented Jul 26, 2019

ok

@megsdev

This comment has been minimized.

Copy link

megsdev commented Aug 1, 2019

ok

@nickrodgers42

This comment has been minimized.

Copy link

nickrodgers42 commented Aug 1, 2019

ok

@haslo

This comment has been minimized.

Copy link

haslo commented Aug 5, 2019

ok

@ztoliver

This comment has been minimized.

Copy link

ztoliver commented Aug 6, 2019

ok

@ndunn219

This comment has been minimized.

Copy link

ndunn219 commented Aug 20, 2019

Why is email@example.web invalid?

@timfuqua

This comment has been minimized.

Copy link

timfuqua commented Aug 20, 2019

Why is email@example.web invalid?

It's not a valid top-level domain: https://en.wikipedia.org/wiki/List_of_Internet_top-level_domains

(Also, combo-breaker...)

@ndunn219

This comment has been minimized.

Copy link

ndunn219 commented Aug 21, 2019

Got it. Thanks. Sorry about the combo-break. Had to look that up.

@skyless

This comment has been minimized.

Copy link

skyless commented Aug 21, 2019

ok

@TimFung93

This comment has been minimized.

Copy link

TimFung93 commented Aug 28, 2019

ok

@spAwn31

This comment has been minimized.

Copy link

spAwn31 commented Sep 16, 2019

email@123.123.123.123
email@[123.123.123.123]
How these two mail ids are valid.

@Lonzak

This comment has been minimized.

Copy link

Lonzak commented Sep 19, 2019

@spAwn31
according to rfc2822 it is a valid domain name. However many email verifier have extra options for that. So for intance for the EmailAdressVerifier you can specify "ALLOW_DOMAIN_LITERALS" to allow it or not. cp. https://github.com/bbottema/email-rfc2822-validator/blob/master/src/main/java/org/hazlewood/connor/bottema/emailaddress/EmailAddressValidator.java. Or in apache commons validator you specify the "allowLocal". (https://commons.apache.org/proper/commons-validator/apidocs/org/apache/commons/validator/routines/EmailValidator.html)

@stefanschaller

This comment has been minimized.

Copy link

stefanschaller commented Nov 17, 2019

ok

@sbnajardhane

This comment has been minimized.

Copy link

sbnajardhane commented Nov 27, 2019

ok

@stack-of-heaps

This comment has been minimized.

Copy link

stack-of-heaps commented Nov 27, 2019

ok

@vedantshetty

This comment has been minimized.

Copy link

vedantshetty commented Dec 12, 2019

email@123.123.123.123
email@[123.123.123.123]
How these two mail ids are valid.

Because instead of accessing the email through the domain name, you are using its IP address. The domain(Gmail, yahoo) we are familiar with is nothing but a human-readable alias for an IP that is resolved by the DNS.

However, most email providers often have multiple servers accepting mail which may not necessarily be on the same IP that the email may be stored in.

Another issue these days has been SPAM. Most email providers have complicated and strict restrictions on email formats, may not send your IP address email

@AdityaUnitu

This comment has been minimized.

Copy link

AdityaUnitu commented Dec 12, 2019

KO

@DaniloOliveira28

This comment has been minimized.

Copy link

DaniloOliveira28 commented Dec 14, 2019

ok

@Gregam3

This comment has been minimized.

Copy link

Gregam3 commented Jan 20, 2020

ok

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.