Sign Up Free

How to Add Email Verification to Signup Forms — Integration Guide

Add real-time email verification to signup forms. Block invalid and disposable emails. Reduce fake signups by up to 95%.

Step-by-Step Instructions

  1. Choose integration method — Option A: JavaScript SDK (easiest). Option B: Server-side API call (most secure, recommended). Option C: Pre-built widget (zero code).
  2. For server-side: Add API call — In your form submission handler, call the verification API before saving. Return a validation error for invalid or disposable emails.
  3. For JavaScript SDK: Add script tag — Add our SDK script before closing body tag. Initialize with your public key and attach to the email input field.
  4. Configure validation rules — Block undeliverable and disposable always. Optionally block risky and role-based. Configure custom error messages for each case.
  5. Handle the response — Show clear messages: "This email does not exist" for invalid, "Please use a permanent email" for disposable, "Did you mean @gmail.com?" for typos.
  6. Add a loading state — Show "Verifying..." while the API runs (under 500ms). Disable submit during verification to prevent double submissions.
  7. Test the integration — Test with known valid, invalid, disposable, and catch-all addresses. Verify error messages display correctly.

Tips

Always validate server-side even with client-side checking. Set 3-second timeout with syntax fallback. Log verification results for analytics.

Why This Matters

Your signup form is the front door to your email list, and every invalid address that passes through it becomes a liability that compounds over time. Without real-time verification, fake email addresses, typos, and disposable accounts enter your database unchecked. Studies show that 20-30% of email addresses entered into web forms contain errors, whether from simple typos like "gmial.com" or intentional use of throwaway addresses by users trying to access gated content without committing a real email. Each of these bad entries degrades your list quality and eventually leads to bounces, spam complaints, and damaged sender reputation when you start sending campaigns.

Adding email verification at the point of signup is fundamentally more effective than cleaning your list after the fact. When you verify in real time, the user is still on your page and can correct a typo or provide an alternative address immediately. Once they leave your site, that opportunity is lost forever. You cannot reach someone at an invalid address to ask for their real email. Real-time verification also blocks the most harmful address types proactively: disposable emails that will expire within hours, role-based addresses like info@ and sales@ that rarely engage with marketing content, and outright fake addresses that will hard bounce on first contact.

Pro Tips

  • Show specific, helpful error messages — Instead of a generic "invalid email" error, display context-aware messages. For typo domains, show "Did you mean @gmail.com?" with a clickable correction. For disposable emails, show "Please use a permanent email address." For non-existent mailboxes, show "This email address does not exist. Please check for typos." Specific messages help users fix the issue rather than abandoning the form.
  • Verify server-side even with client-side validation — Client-side JavaScript validation improves user experience with instant feedback, but it can be bypassed by disabling JavaScript or submitting directly to your API endpoint. Always perform a second verification on the server side before saving the email to your database to ensure no unverified address ever enters your system.
  • Use progressive verification — Start with instant client-side syntax validation (proper format, valid TLD) as the user types, then trigger the full API verification on form submission. This gives immediate feedback for obvious errors without consuming an API credit, and reserves the full verification for addresses that pass basic formatting checks.
  • Track verification metrics — Log how many signups are blocked by verification and categorize them by reason (invalid, disposable, typo, role-based). This data tells you how many bad addresses you are preventing from entering your list and helps justify the cost of the verification service. It also reveals if specific traffic sources or campaigns are driving low-quality signups.
  • Do not block catch-all domains outright — Catch-all domains accept all emails regardless of whether the specific address exists. Many legitimate businesses configure their domains as catch-all. Blocking them would reject real potential customers. Instead, accept catch-all addresses but flag them internally for closer monitoring and include them in your regular re-verification schedule.

Common Mistakes to Avoid

  • Making verification too aggressive on mobile — Mobile users are more likely to make typos due to smaller keyboards and autocorrect. If your verification rejects addresses too aggressively on mobile, you will see significantly higher form abandonment rates. Consider being slightly more lenient on mobile by accepting risky addresses and verifying them asynchronously after signup rather than blocking the registration flow.
  • Not handling API timeouts gracefully — If the verification API takes longer than expected or is temporarily unavailable, your form should not hang indefinitely or show a confusing error. Set a 3-second timeout and fall back to accepting the email with basic syntax validation. Queue the address for background verification and follow up if it turns out to be invalid.
  • Forgetting to verify on all form entry points — Many websites have multiple places where users can enter an email: the main signup form, pop-up modals, footer newsletter widgets, checkout flows, and landing pages. If you add verification to your main form but forget the footer widget or a landing page, unverified addresses will continue flowing into your database through those unprotected entry points.
  • Skipping verification for social login or SSO users — Users who sign up through Google, Facebook, or SSO typically have a valid email, but not always. Some social accounts use email addresses that are no longer active, and OAuth providers may return secondary or outdated email addresses. Always verify the email address returned by the social provider before adding it to your mailing list.

Frequently Asked Questions

Our API responds in under 500ms, which is imperceptible to most users. The verification runs when the user leaves the email field or clicks submit. If the API is temporarily slow, the form falls back to client-side syntax validation. The user experience impact is minimal while the data quality improvement is significant.

Yes, the API returns detailed result codes that you can map to custom messages. For example, show "This email domain does not exist" for domain errors, "Please use a non-disposable email" for temporary addresses, or "Did you mean user@gmail.com?" for typo suggestions. Full customization is supported.

Yes, our JavaScript SDK and REST API work with any frontend framework. We provide example integration code for React (with hooks), Vue (with composables), Angular (with services), and vanilla JavaScript. The SDK can also be loaded as a script tag for simple HTML forms.

Verify Your Email List — Free, Fast, Accurate

Get 100 daily free verifications. No credit card required. Visit our email verifier for complete verification.

Try our free email verifier — verify any email instantly, no signup required. Need bulk verification? Upload your list and clean thousands of emails in minutes.

Developers: integrate email verification into your app with our RESTful API — SDKs for 7 languages.