Skip to content
FunnelGuard

Fix guide by FunnelsGuard

Invalid email accepted by your form: how to find and fix it

CNV-030Medium impactDetectedBy FunnelGuardPublished Updated
On this page

What this issue is

Invalid email accepted means a form lets a visitor submit a value in the email field that is not shaped like an email address. Examples: john@, john@gmail, john gmail.com, @@, or a string of random letters. The form shows a thank-you page as if all is well.

It usually happens for one of four reasons. The field is a plain text input, not type="email". The form has novalidate set. A custom script replaced the browser check and does it badly. Or there is no server-side check, so anything that reaches the endpoint is saved.

Why it costs you leads or sales

A lead with a bad email is a lead you cannot follow up. Autoresponders bounce, sales reps waste time, and your CRM fills with junk. Typos from real buyers are the worst case: someone who wanted to hear from you typed name@gmial.com, saw success, and never got a reply.

Bounces also hurt your sending reputation, which can push later emails to spam. Ad platforms count the submission as a conversion, so you may optimise campaigns towards worthless leads.

Where a bad email breaks the funnel
  1. Visitor types 'john@'Typo or junk entry
  2. Form accepts itNo validation error shown
  3. Confirmation emailBounces or never sent
  4. Sales follow-upNo way to contact the lead

The form accepts the bad address, so every later step fails quietly.

Contactable leads out of 100 submissionsExample numbers
Contactable leads out of 100 submissions (example)No validation: 88 leads; With validation: 96 leads037748896No validationWith validationleads

Example: illustrative numbers only. Rejecting bad emails at the form lets visitors fix typos on the spot.

How to check if your site has it

Test your form with bad emails
  1. Open the form in a private window

    Use a fresh browser session so autofill and saved data do not hide the problem.

  2. Fill every other field correctly

    This isolates the email field as the only thing that could block the submission.

  3. Try several bad values

    Test john, john@, john@gmail, john@@gmail.com, john gmail.com and @gmail.com, one at a time.

  4. Watch what happens

    A good form shows a clear error next to the field and does not submit. If you reach a thank-you page, the form accepts invalid emails.

  5. Check the saved entry

    Look in your CRM, form plugin entries or inbox. If the bad value was stored, the server has no check either.

How to fix it

Fix it in layers: a correct field type in the browser, a server-side check that cannot be skipped, and a helpful error message. Keep the rule simple. Over-strict patterns reject real addresses (see CNV-029).

Basic HTML email field with browser validationhtml
<form action="/submit" method="post">
  <label for="email">Email</label>
  <input type="email" id="email" name="email" required autocomplete="email">
  <button type="submit">Send</button>
</form>
Fix by platform
  1. Use the email field type

    In your form plugin (Contact Form 7, Gravity Forms, WPForms, Fluent Forms and similar), replace any plain text field with the Email field. In Contact Form 7 use the tag [email* your-email].

  2. Remove custom scripts that disable checks

    Check theme or plugin settings and custom JavaScript for novalidate or code that overrides the plugin's validation.

  3. Update the plugin

    Server-side validation in these plugins runs by default when the field is an email type, so make sure the plugin is current.

Server-side email check in PHPphp
<?php
$email = trim($_POST['email'] ?? '');
if (!filter_var($email, FILTER_VALIDATE_EMAIL)) {
    http_response_code(422);
    echo 'Please enter a valid email address, like name@example.com.';
    exit;
}
// Safe to save or send $email from here.
Simple client-side check with a friendly messagejavascript
const input = document.querySelector('#email');
input.addEventListener('blur', () => {
  if (input.value && !input.checkValidity()) {
    input.setCustomValidity('Please enter an email like name@example.com');
  } else {
    input.setCustomValidity('');
  }
});
Form behaviour

Before

  • `john@` submits and shows a thank-you page
  • Bad value saved to the CRM
  • Autoresponder bounces

After

  • Error shown beside the field, form does not submit
  • Visitor fixes the typo and resubmits
  • Only valid emails reach the CRM
Try it: email validation on or offInteractive
Email validation missing

Validation missing

Leads or data lost

'john@' is accepted, the thank-you page shows and the lead cannot be contacted.

Toggle the cause to see what happens to a visitor who mistypes their email.

How to confirm it's fixed

Confirmation checklist
  • Each bad value (john, john@, john@gmail, @gmail.com) shows an error and does not submit
  • The error text is readable and sits next to the email field
  • Other fields keep what the visitor typed
  • A valid address, including name+test@example.com, still submits
  • The thank-you page, CRM entry and notification email only appear for the valid test
  • Your conversion tag does not fire on rejected attempts

How to prevent it happening again

This problem often returns after a theme update, a plugin swap, a form rebuild or a custom script added by a developer. Add a bad-email test to your release checklist for any change that touches forms.

Prevention habits
  • Always use the platform's Email field, not plain text
  • Keep a server-side check even when the browser check works
  • Retest forms after theme, plugin and page-builder updates
  • Review form scripts before adding custom validation
  • Monitor the live form with a scheduled bad-data test

How FunnelGuard handles this

FunnelGuard detects this issue today. On a schedule, a robot visitor opens your form, fills it with bad data in the email field and checks that an error message appears. If the form accepts the bad value instead, the check fails.

A failure is re-checked from a second region before one alert goes out, with a screenshot and a likely cause. Test traffic is marked (utm_source=funnelguard, fg_test=1, an fg_test cookie and its own user agent). The Free plan covers 1 site and 2 journeys with daily checks and no card. Paid plans start at $39/month with a 3-day free trial.

Questions people ask

Why does my form accept an email without the @ symbol?

The field is most likely a plain text input, not type="email", or the form has the novalidate attribute. A custom script may also have replaced the browser check. Switch to the platform's Email field and add a server-side check.

How do I stop a contact form accepting invalid emails?

Use an email field type with required, add a server-side check such as PHP's FILTER_VALIDATE_EMAIL, and show a clear error message. Test with values like john@ and john@gmail to confirm they are rejected.

Is HTML5 email validation enough?

Not on its own. It runs in the browser, so scripts, bots and the novalidate attribute can skip it. Add a server-side check before you save or send the data.

Does `type="email"` accept `john@gmail`?

Yes, browsers can accept an address without a dot in the domain, because it is technically valid syntax. If you want to require a full domain such as gmail.com, add a pattern or a server-side rule, and be careful not to block real addresses.

Can a regex for email validation block real customers?

Yes. Strict hand-written patterns often reject plus addressing (name+tag@example.com) or newer domain endings. Prefer the built-in browser check or a tested library over a custom regex.

How can I test if my form accepts bad emails?

Fill the other fields correctly, then submit values such as john, john@, @gmail.com and john@@gmail.com one at a time. If any reaches a thank-you page or your CRM, validation is missing. FunnelGuard can run this check on a schedule.

Will validation catch typos like gmial.com?

No. name@gmial.com is a validly shaped address, so format checks pass it. You can add a 'Did you mean gmail.com?' suggestion or a confirmation email step to catch it.

Does FunnelGuard catch this?

Detected

FunnelGuard checks for this today.

How: fill bad data + assert error text.

Stop finding out from your customers

FunnelGuard runs your real forms and checkouts on a schedule, checks the tracking and the leads behind them, and alerts you once, with a screenshot. Try any paid plan free for 3 days.