On this page
What this issue is
Your form should refuse an email address that is clearly wrong. When it doesn't, the submission goes through with a value like asdf, test@test, john@gmail or a@b.c. The visitor sees a thank-you page, and you get a lead record with no usable contact detail.
This usually happens for one of four reasons: the field is a plain text box instead of an email field, validation was switched off in the form settings, a custom script replaced the built-in check, or the server accepts whatever the browser sends.
Why it costs you leads or sales
The business impact is low per lead, but it adds up. A real person who mistypes their address (for example name@gmial.com) is never caught, so you cannot reply and the lead is lost. Bad entries also fill your CRM, waste sales time, trigger bounced autoresponders and can harm your sending reputation. Reports on lead volume look better than the real number of reachable leads.
- Visitor types emailname@gmial.com or just 'abc'
- Form validationAccepts the value
- AutoresponderBounces
- CRM recordNo way to contact
- Sales follow-upWasted effort
The form lets the typo through, so every later step works on an address that cannot receive mail.
Example: illustrative numbers only. With no validation, some entries are typos or junk and cannot be contacted.
How to check if your site has it
Test your own form with deliberately bad input. Use a private window and mark the entries clearly as tests so your team can delete them.
- abc (no @ sign)
- abc@ (nothing after the @)
- @example.com (nothing before the @)
- name@domain (no dot ending)
- name@domain..com (double dot)
- name @example.com (a space inside)
- A very long string of 300 characters
- Leave the field empty if it should be required
If any of these reaches the thank-you page, validation is missing. Next, disable JavaScript in your browser developer tools, or send the form with a tool such as curl. If the bad value is still accepted, the server is not checking it either.
How to fix it
Use an email field
Make sure the input is
type="email", nottype="text". Browsers then check the basic shape and show the right mobile keyboard.Mark it required
Set the field as required so an empty value is refused.
Turn on your form tool's own validation
Check the platform steps below. Most builders have a field type or setting for email.
Validate again on the server
Check the address in your handler code or form plugin before saving or sending it on.
Show a clear error
Tell the visitor what to fix, for example 'Please enter an email like name@example.com', and keep what they already typed.
Use the Email field type
In your form plugin (Contact Form 7, WPForms, Gravity Forms, Fluent Forms and others), make sure the field is the Email type, not Single Line Text.
Contact Form 7
Use the tag
[email* your-email]. The asterisk makes it required and it is checked on the server too.Check custom code
If a theme or snippet removes validation or changes the field, remove or fix it.
Theme forms
In the theme code, make the email input
type="email"withrequired. Contact and newsletter forms in Shopify check the address on submit, so a bad value usually returns an error.Third-party form apps
Open the app's field settings and set the field type to email.
Know its limit
GTM does not validate forms. If a tag or custom HTML script alters the form or its submit button, review it so it does not bypass the form's own checks.
Set the input type
Select the field in the Designer, open the element settings and set Type to Email, then turn on Required.
Add server checks if needed
Webflow's built-in form handling is basic. If you post to your own endpoint or a connected tool, validate there as well.
Use the Email field
In the form or survey builder, use the standard Email field rather than a custom text field, and set it to required.
Check workflows
Review any workflow that creates a contact from the form so it does not accept a blank or malformed email.
Use the Email field
In Wix Forms, add the Email field (not a short text field) and switch on Required in its settings.
Use the Email field
In the form block, add or change the field to Email and mark it Required. Squarespace checks the format on submit.
Add browser and server checks
Use the snippets below. Keep the server check even if the browser check exists.
<label for="email">Email</label>
<input type="email" id="email" name="email" required
autocomplete="email" maxlength="254"
pattern="[^\s@]+@[^\s@]+\.[^\s@]{2,}"><?php
$email = trim($_POST['email'] ?? '');
if (strlen($email) > 254 || !filter_var($email, FILTER_VALIDATE_EMAIL)) {
http_response_code(422);
exit('Please enter a valid email address.');
}
// Also require a dot in the domain part.
$domain = substr(strrchr($email, '@'), 1);
if (strpos($domain, '.') === false) {
http_response_code(422);
exit('Please enter a valid email address.');
}Before
- 'abc' is accepted
- Thank-you page shows
- CRM gets an unreachable contact
- Autoresponder bounces
After
- 'abc' shows a clear error
- Visitor corrects the address
- CRM gets a reachable lead
- Autoresponder is delivered
Phone number * required
Visitors who start the form and send it (example)
42% send it · example numbers
Invalid addresses are accepted, so some submissions are leads you can never contact.
Toggle to see the effect of missing email validation on submissions.
How to confirm it's fixed
Repeat the bad inputs
Try each entry from the checklist above. Each should show an error and not reach the thank-you page.
Test a valid address
Submit a real test address with a plus sign, such as
you+test@yourdomain.com. It should succeed.Test without JavaScript
Post the form directly with curl or similar and a bad email. The server should respond with an error.
Check the destination
Confirm the good test lead arrives in your inbox and CRM, and no record exists for the bad ones.
How to prevent it happening again
- Re-run the bad-email test after any form plugin, theme or builder update
- Re-run it after you redesign or replace a form
- Keep server-side validation even when the front end has it
- Avoid custom scripts that remove or override built-in checks
- Review recent CRM entries monthly for obvious junk addresses
- Offer a typo hint for common domains instead of strict blocking
How FunnelGuard handles this
FunnelGuard detects this issue today through validation check journeys. A robot visitor opens your form on a schedule, enters an obviously invalid email and checks whether the form accepts it. If the form lets the bad value through, that is flagged as a failure.
A failure is re-checked from a second region before one alert goes out, with a screenshot and a likely cause. Alerts can go to email, Slack, Teams, WhatsApp, a webhook or PagerDuty. Test traffic is marked (utm_source=funnelguard, fg_test=1, an fg_test cookie and its own user agent), so you can filter it out of your reports. The Free plan covers 1 site and 2 journeys with daily checks and no card, and paid plans include a 3-day free trial.
Questions people ask
Why does my form accept invalid email addresses?
Usually the field is a plain text box instead of an email field, validation is switched off in the form settings, or a custom script overrides the check. It can also happen when only the browser checks the value and the server accepts anything it receives.
How do I validate an email address on a contact form?
Use an input type="email" with the required attribute for the browser check, then validate the address again on the server. In PHP, filter_var($email, FILTER_VALIDATE_EMAIL) is a simple option. Show a clear error message if the check fails.
Is HTML5 email validation enough?
No. It only checks the basic shape, and it accepts values like a@b. It can also be skipped by bots or direct posts to the form address, so you need a server-side check as well.
Should I verify that an email address actually exists?
Format checks catch obvious errors but cannot prove a mailbox exists. For that, send a confirmation email or use a double opt-in link. For most lead forms, a good format check plus a typo hint is enough.
Why do I get fake emails like test@test.com in my leads?
Some visitors enter junk to get past the form, and bots fill fields with random values. Stronger validation and spam protection reduce these entries, but they will not remove every one.
Can strict email validation lose me real leads?
Yes, if the rule is too strict. Patterns that reject plus signs, long domain endings or new domains turn away real people. Keep the rule simple and use a suggestion for likely typos.
How can I test email validation on my form automatically?
Submit known bad values on a schedule and check that the form refuses them. FunnelGuard does this with validation check journeys and alerts you if a bad email gets through.
Related issues
- DLV-197Spam flooding the form, real leads buriedFix guide
- DLV-207Disposable email filter rejects valid business domainsFix guide
- DLV-201Honeypot field autofilled by browsers, real leads discardedFix guide
- DLV-203Spam filter (Akismet, CleanTalk) marks real leads as spam silentlyFix guide
- DLV-198Spam bots exhaust the CRM/Zapier task quotaFix guide
- DLV-199reCAPTCHA keys invalid for the domain, every submit failsFix guide