Websites and CMS
Squarespace email validation integration
One snippet in your Squarespace site’s Code Injection checks the email field of your form blocks, newsletter blocks and lightbox forms when the visitor has finished typing, and stops the form only when the address cannot receive mail or is a throwaway inbox. Every other submission goes through to Squarespace as usual.
Read the full setup guideGet an API key
- Setup guide
- Code Injection snippet, checked in the browser
data-key 'YOUR_BROWSER_KEY'
data-region 'eu' checks stay in the EU
data-stop 'invalid disposable' or 'invalid', 'none'
data-msg-* your own wordingAt a glance.
- Status
- Setup guide. Not listed on a marketplace yet: you set it up yourself in a few steps, below and in the full guide.
- For
- Squarespace site owners whose forms and newsletter blocks collect sign-ups, leads or bookings and who want a mistyped address caught while the visitor can still fix it.
- You need
- A Squarespace site on a plan with code injection (Core, Plus, Advanced or some older plans), and a browser key made just for the site: your site’s addresses as allowed origins, and a daily credit cap.
- Costs
- 1 credit = 1 validated address, as with any API request. Free: unknown results, API errors, malformed addresses, test addresses on sandbox.email-validation.org, addresses on reserved domains such as example.com and, in a bulk list, repeats of an address (charged once).
- Full guide
- Read the full setup guide
Typical uses.
Catch typos at sign-up
A domain such as gmial.com gets a one-click fix, and an address that cannot receive mail stops the form with a short message next to the field.
Ask for a lasting address
A throwaway inbox stops the form by default, so the visitor is asked for a permanent address instead. Choose the results that stop it on the script tag.
Keep real sign-ups flowing
valid and unknown results always go through, and so does every submission when a check fails, no credits are left or no answer arrives in time.
Set it up. 4 steps.
The short version of the full setup guide, which stays the reference when a step does not match what you see.
Create a browser key
Under API keys, choose Create key and pick “On a public web page” (browser key) under “Where will you use this key?”: such a key can only validate addresses. Add your site’s addresses as allowed origins (plus your squarespace.com address if you test there), and a daily credit cap a little above a busy day’s sign-ups.
Paste the snippet
In the Pages panel, open Custom Code, then Code Injection (Website Tools on a version 7.0 site), paste the snippet from the guide into Footer and replace
YOUR_BROWSER_KEYwith your key. For one page only, paste its two script tags into that page’s Page Header Code Injection instead.Save
Save. Code injection never runs on Squarespace’s checkout pages, and Squarespace may not run it while you are logged in: test the live site in a private window.
Test it
On the live site,
no_mailbox@sandbox.email-validation.orgshows the message andlikely_typo@sandbox.email-validation.orga fix, at no cost. To see a form sent, use an address of yours that receives mail, never a test address: any email the form sends to it would bounce.
Good to know.
The key in the snippet is public: anyone can read it in your page’s source. Allowed origins stop other websites from using it in their visitors’ browsers, but the daily cap is what limits the cost.
Each address is checked once while the page is open, and partial addresses are never sent.
Squarespace shows some Email fields as plain text fields: the snippet’s second part hands those to the form guard too. To keep it off a page with a sign-in form, paste its script tags into the other pages’ headers instead of the site’s Footer.
Add
data-region="eu"if your account processes data in the EU only: the checks then go tohttps://api-eu.email-validation.org.
Connect Squarespace.
Test it on our sandbox addresses for free, then on your own contacts.
Updated · Maintained by: Email Validation LLC