Início » How to Use the API to Verify Email in a WordPress Form

How to Use the API to Verify Email in a WordPress Form

See how simple it is to use our API to verify email in your WordPress form.

SafetyMails’ email verification API allows you to create a code for installation on your Landing Pages or WordPress site, preventing the entry of invalid email leads into your forms and email lists.

Registering a source:

Remember that for this email verification API to work, you need to have an activated credit subscription (see how to subscribe).

To start the process, follow these steps:

  • Access your account on SafetyMails (If you don’t have an account, create one now and get 100 free credits);
  • In the top menu, click on “Real-time API”
  • Select the “Standard Installation” option
  • On the next screen, give a name to the source you are creating;
  • Register the domain of your form (for example, if your form is at “https://safetymails.com/form,” you should enter only “safetymails.com”);
  • After that, select the option “On a WordPress site” from the list of options where you intend to use your API to verify email.

Inform which plugin is used on your site; if yours is not listed, select “Others.”

  • On the screen that will be displayed, you can configure the permissions for your API for forms, namely:
    • Allowed statuses: define which API response statuses will allow registration in the form.
    • Block provider domains: enabling this function will prevent the registration of emails with provider domains, such as Gmail.com, Yahoo.com, among others.
  • By clicking “Finish,” the installation script of the email verification API will be created and available for use.
  • The details of the created API will be described on this page.

Example of code:

<script src='https://optin.safetymails.com/main/safetyscript/28a389f6fd52************29fd837e8ee8c280/safetyoptin.js'></script>

Where to install the code in WordPress:

After generating the email verification API code, simply access your WordPress administration and add a Custom HTML block on the page where your form is as follows:

After adding the block, paste the code generated by SafetyMails and then publish your post.

Alternatively, you can also add the script through a script insertion plugin in the footer, thus protecting all URLs with forms on your site.

If you need further guidance, contact our support team ([email protected]).”

More Reading

Post navigation