How to restrict Public email service

To restrict it to company mail IDs only. In other words, no free email service provider’s mail id would work for registration.

A condition can be used:

if(/(aol|gmail|yahoo|hotmail|outlook|icloud|zoho|titan|protonmail|gmx|yandex|tutanota).com$/.
test(mail1)) {
jQuery(‘#validmail_’+type).html(” Please enter your Business email”);
return false;
}

The restricted email service provider names: 

  • aol 
  • gmail 
  • yahoo 
  • hotmail 
  • outlook 
  • icloud 
  • zoho 
  • titan 
  • protonmail 
  • gmx 
  • yandex 
  • tutanota 

Leave a comment

Your email address will not be published. Required fields are marked *