Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- function emailVerify($email){
- $answer = false;
- if(filter_var($email, FILTER_VALIDATE_EMAIL)){
- // Next check the domain is real.
- $domain = end(explode("@", $email));
- if (checkdnsrr($domain), 'MX'){
- $answer = true;
- }
- else{
- if ((checkdnsrr($domain, 'A')) or (checkdnsrr($domain, 'AAAA')) or (checkdnsrr($domain, 'A6'))){
- $answer = true
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement