Bulk Email Validation Script Example

This is a Bulk Email Validation Script example code for verifying emails on your own website, application, mobile app, or other form intake online.

bulk email validation script example

The script connects to an online service and its easy to use. Reliability is highest in the market at 99% and can be used to process thousands or millions of email addresses at one time.

This example code is popular with developers who want to integrate email validation on their own service, typically during the intake of an email address on a form, however the bulk email validation script can be used to clean large lists of emails also.

Bulk verification can be performed by uploading text csv files with the list of email addresses to your own custom built application if you have the demand for it.

This is the most requested bulk email validation script example in PHP

<?php

    // URL which should be requested

    $url = 'http://api.emailyoyo.com/api/a/v1';

    $apikey = 'YOUR API KEY';  // API Key

    $email  = 'Email Address to Test';  // Email to test

    // jSON String for request

    $url .= "?email=$email&key=$apikey";

    // Initializing curl

    $ch = curl_init( $url );

    if($ch == false) {

        die ("Curl failed!");

    } else {

        // Configuring curl options

        $options = array(

            CURLOPT_RETURNTRANSFER => true,            

            CURLOPT_HTTPHEADER => array('Content-type: application/json')

        );

        // Setting curl options

        curl_setopt_array( $ch, $options );

        // Getting results

        $result =  curl_exec($ch); // Getting jSON result string

        // display JSON data

        echo "$result";                        

    }     

?>

Here are additional code examples for bulk email validation in C#, VB.Net, JAVA, Python, PERL, jQuery, and AngularJS.

The bulk email validation script shown above in this code example will require you to have a license key to make it operational on your website or application.

You can request a temporary email validation API license key here and begin using this script in a live online environment immediately after receipt of your key.

Additional code/script examples can be provided on request. Server examples of PHP, C#, VB.NET, Java, Python, and PERL. Client side examples include jQuery ACL, jQuery license key, AngularJS, and cURL.