Skip to main content

Code examples

Having trouble? Send us an email at support@addressfinder.com, and we will have a look. Be sure to include a link to your website, so we can see the page with the problem.

Allow all emails

With this, you will not block any email from being submitted, but you will have the ability to ask your customers to add a better email address if possible. The message is optional and a nicely worded default will be provided if omitted.
View on CodePen

Strict blocking

With this, you will block all addresses apart from valid, corporate email addresses.
View on CodePen

Verify email and AU address autocomplete

This form demonstrates the verification of an email field, as well as the address autocomplete widget being used on the same form.
View on CodePen

Email verification in a modal

When working with an element such as a modal. The container attribute must be set to the modal's parent container. This ensures the icons and messages can be positioned and displayed correctly when the modal is shown and hidden.
View on CodePen

Custom styles for email verification

Demonstrates how to adjust the text and border colours of the email verification messages.
View on CodePen

Verification of multiple email fields in a single form

Shows how to configure the Email Verification Widget to block unverified emails in 2 separate fields in the same form.
View on CodePen

Verify multiple email fields in separate forms

The example demonstrates how to configure the email verification widget to check email fields in separate forms.
View on CodePen

Hide the success tick with email verification

When an email address is successfully verified, a green tick is displayed. In this example, we show how to use CSS to hide that tick.
View on CodePen

Multiple widgets (address, email, and phone)

The example shows the use of address, email and phone validation services all on the one page.
View on CodePen

HubSpot form

This is an example of Addressfinder's email widget integrated into a HubSpot form.
View on CodePen

Email metadata collection

The email widget verifies the supplied email address and on a successful or unsuccessful verification, valuable metadata is collected.
View on CodePen

Lite mode

By default, the EV widget will perform a rigorous domain and SMTP connection check. This normally takes 3-4 seconds to complete. If you need a faster check, you can activate the "lite mode" which confirms the email format and domain configuration, normally in less than 1 second.
View on CodePen