PHP Sort email addresses by mailserver/MX Records

Job ID: 34706163

Budget: $10 – $30 USD

Hello.... I would a need PHP Script written to do the following:

** Get email addresses entered in an address bar i.e: /?email=
** Get email addresses entered from a file like emails.txt

---- I need it both ways as above ------

** Save the email as a variable for use within the file or globally (global variable)
** Split email into two parts - the username and the domain name e.g list($username,$Domain) = split('@',$email);
** Create a function to check the mailserver or MX Record of the $Domain variable of the split email
** Save the Mailserver or MX Record gotten from the function as a variable
** Create a function that can help tell if the Mailserver or MX Record gotten is either any of the following:

******* OWA webmail
******* Office365
******* GSuite
******* Godday webmail
******* Squirell webmail
******* Roundcube webmail
******* Mail.com
******* Yandex
******* Gmail
******* Yahoomail
******* hotmail
******* Aol
******* Outlook
******* Comcast webmail
******* Verizon webmail
******* 1&1 webmail
******* ZohoMail
******* GMX Webmail
******* O2 webmail
******* Wannadoo webmail
******* Orange webmail
******* Optus webmail
******* BT Internet webmail
******* NTL webmail
******* AT&T webmail

............ AND MANY MORE AND ANY OTHER TYPE OF MAILSERVERS AVAILABLE

I just need the PHP script to be able to scan any given email and detect the mail provider from the email domain.
Let me know how quickly this can be done. Thanks!
Related categories: PHP Linux DNS HTML Email Handling