Skip to content

Commit

Permalink
Update email provider and validate hostname with www too
Browse files Browse the repository at this point in the history
  • Loading branch information
Misagh committed Apr 1, 2022
1 parent f878d3c commit da230f3
Show file tree
Hide file tree
Showing 2 changed files with 178 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/Validations/EmailHostValidator.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public function getResultResponse(): bool
{
$hostName = $this->getEmailAddress()->getHostPart();
if ($hostName) {
return ($this->getHostByName($hostName) !== $hostName);
return ($this->getHostByName($hostName) !== $hostName) || ($this->getHostByName('www.' . $hostName) !== $hostName);
}

return false; // @codeCoverageIgnore
Expand All @@ -25,4 +25,4 @@ protected function getHostByName(string $hostName): string
{
return gethostbyname($hostName); // @codeCoverageIgnore
}
}
}
177 changes: 176 additions & 1 deletion src/data/email-providers.php
Original file line number Diff line number Diff line change
Expand Up @@ -3726,5 +3726,180 @@
'zybermail.com',
'zydecofan.com',
'zzn.com',
'zzom.co.uk'
'zzom.co.uk',
'zzom.co.uk',
'fastmail.de',
'fastmail.es',
'fastmail.fr',
'fastmail.im',
'fastmail.in',
'fastmail.jp',
'fastmail.mx',
'fastmail.net',
'fastmail.nl',
'fastmail.org',
'fastmail.se',
'fastmail.to',
'fastmail.tw',
'fastmail.uk',
'fastmail.us',
'123mail.org',
'eml.cc',
'mm.st',
'myfastmail.com',
'sent.as',
'sent.at',
'speedymail.org',
'150mail.com',
'16mail.com',
'2-mail.com',
'50mail.com',
'elitemail.org',
'emailengine.org',
'emailplus.org',
'f-m.fm',
'fast-email.com',
'fast-mail.org',
'fastest.cc',
'fea.st',
'h-mail.us',
'imap-mail.com',
'imap.cc',
'imapmail.org',
'inoutbox.com',
'internet-e-mail.com',
'internet-mail.org',
'letterboxes.org',
'mailingaddress.org',
'mailservice.ms',
'mailworks.org',
'mymacmail.com',
'reallyfast.info',
'ssl-mail.com',
'swift-mail.com',
'theinternetemail.com',
'your-mail.com',
'zohomail.com',
'protonmail.com',
'accountant.com',
'salesperson.net',
'contractor.net',
'fastmail.com.au',
'mailbox.org',
'2trom.com',
'acdcfan.com',
'activist.com',
'aircraftmail.com',
'allergist.com',
'alumni.com',
'angelic.com',
'appraiser.net',
'arcticmail.com',
'asia-mail.com',
'atheist.com',
'auctioneer.net',
'bartender.net',
'bellair.net',
'birdlover.com',
'blader.com',
'brazilmail.com',
'brew-master.com',
'brew-meister.com',
'bsdmail.com',
'californiamail.com',
'cash4u.com',
'chef.net',
'chinamail.com',
'clubmember.org',
'collector.org',
'computer4u.com',
'coolsite.net',
'cyberservices.com',
'cyber-wizard.com',
'dallasmail.com',
'disciples.com',
'disposable.com',
'dutchmail.com',
'elvisfan.com',
'englandmail.com',
'europemail.com',
'fastservice.com',
'fireman.net',
'galaxyhit.com',
'germanymail.com',
'graduate.org',
'graphic-designer.com',
'greenmail.net',
'groupmail.com',
'hackermail.com',
'hilarious.com',
'humanoid.net',
'instruction.com',
'instructor.net',
'irelandmail.com',
'israelmail.com',
'italymail.com',
'job4u.com',
'kissfans.com',
'koreamail.com',
'lovecat.com',
'madonnafan.com',
'mail-me.com',
'mexicomail.com',
'minister.com',
'moscowmail.com',
'muslim.com',
'net-shopping.com',
'ninfan.com',
'nonpartisan.com',
'null.net',
'orthodontist.net',
'pacific-ocean.com',
'pacificwest.com',
'petlover.com',
'photographer.net',
'physicist.net',
'planetmail.com',
'planetmail.net',
'polandmail.com',
'politician.com',
'protestant.com',
'qualityservice.com',
'radiologist.net',
'realtyagent.com',
'reborn.com',
'reggaefan.com',
'reincarnate.com',
'religious.com',
'rocketship.com',
'safrica.com',
'scotlandmail.com',
'secretary.net',
'snakebite.com',
'socialworker.net',
'solution4u.com',
'songwriter.net',
'spainmail.com',
'surgical.net',
'swedenmail.com',
'swissmail.com',
'teachers.org',
'tech-center.com',
'theplate.com',
'therapist.net',
'toke.com',
'toothfairy.com',
'torontomail.com',
'tvstar.com',
'webname.com',
'worker.com',
'tutanota.com',
'tutanota.de',
'tutamail.com',
'tuta.io',
'keemail.me',
'mail.com.tr',
'vivaldi.net',
'tempail.com',
'nedoz.com',
];

0 comments on commit da230f3

Please sign in to comment.