Results 1 to 2 of 2

Thread: Best Invalid Email Checker ever

  1. #1
    Join Date
    Dec 2014
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Smile Best Invalid Email Checker ever

    Hi

    Hope you all have a very good weekend! I am a newbie. I need a help from you guys. I have over 2500 subscribers at my website. I suspect that majority of them signed up with the invalid emails. Now, I want to identify the Invalid emails and remove them forever. Is there any email checker that can help me very well? I will be waiting for your kind help guys!

    Thanks in advance.

    Good Luck!

  2. #2
    Join Date
    Jan 2007
    Location
    Davenport, Iowa
    Posts
    1,769
    Thanks
    82
    Thanked 92 Times in 90 Posts

    Default

    There is no such thing as the perfect email validator. The following has served me well though:

    Code:
    <?php
    $test='abc@domain.info';
    if(preg_match('/^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,4})$/i', 
            $test)) {echo "YES";}
    else {echo "NO";}
    ?>
    Is the subscription to your site based on a program you wrote or a third party program like phpbb or wordpress?
    To choose the lesser of two evils is still to choose evil. My personal site

Similar Threads

  1. Replies: 3
    Last Post: 12-18-2010, 11:08 PM
  2. MP3 Checker
    By XAKERA in forum PHP
    Replies: 6
    Last Post: 02-19-2008, 11:46 PM
  3. Email riddler invalid HTML transitional?
    By robertsaunders in forum JavaScript
    Replies: 4
    Last Post: 01-15-2007, 02:19 PM
  4. Replies: 2
    Last Post: 11-10-2006, 04:22 PM
  5. Invalid Email Address
    By Michele in forum Bug reports
    Replies: 8
    Last Post: 02-20-2006, 04:11 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •