A PHP Error was encountered

Severity: Notice

Message: Only variable references should be returned by reference

Filename: core/Common.php

Line Number: 257

Email verification, that gets the most out of your data | MailingBird.com

Use the powerful features of MailingBird to tune up your mailinglists and boost revenues by improving, enriching and optimizing your subscriber data. Sign up today for improving your data and boost revenues.

The following live demos are going to show you MailingBird in action. For detailed Information check our API Docs.


Demo 1: Email Form live validation (jQuery)

Type in your email-address and submit the form. This is a live validation on form submission using the MailingBird API and jQuery.

  <script>
  
 $('#myform button').click( function() {
    
    var email = $('#myform input[name="mymail"]').val();
   
    $.ajax({
      url: "/url_to_ajax/",
      type: "POST",
      data: {mail : email},
      success: function(response) {

        var data = jQuery.parseJSON(response);
  
       if( data && ( data.ResponseCode == 400 || (data.ResponseCode == 200 && data.Result.Summary.SpamAuthority > 50 ) ) ){
          //This Email is not valid
          alert("Please enter a valid email-address");
        }else{
          //Email is valid.
          $('#myform input[name="mymail"]').val( data.Result.Address.SanitizedSyntax ); 
          alert( data.Result.Address.SanitizedSyntax + " is a valid email-address!");
        }
        
      }
    });    
  });
  
  </script>
  

Demo 2: Form Pre-population (jQuery)

Especially in mobile it is essential to keep forms as short as possible. This is a live demo for form pre-population using the MailingBird API and jQuery.

  <script>
  
 $('#myform2 input[name="mymail"]').blur( function() {
    
    var email = $('#myform2 input[name="mymail"]').val();
   
    $.ajax({
      url: "/url_to_ajax/",
      type: "POST",
      data: {mail : email},
      success: function(response) {

        var data = jQuery.parseJSON(response);
  
        if( data && data.ResponseCode == 200 ){
          
          if( data.Result.Information.Firstname ){
            $('#myform2 input[name="name"]').val( data.Result.Information.Firstname );
          }
          if( data.Result.Information.Lastname ){
            $('#myform2 input[name="surname"]').val( data.Result.Information.Lastname );
          }
          
        }
        
      }
    });    
  });
  
  </script>