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.
- Visitor types 'john@'Typo or junk entry
- Form accepts itNo validation error shown
- Confirmation emailBounces or never sent
- Sales follow-upNo way to contact the lead
The form accepts the bad address, so every later step fails quietly.
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
Open the form in a private window
Use a fresh browser session so autofill and saved data do not hide the problem.
Fill every other field correctly
This isolates the email field as the only thing that could block the submission.
Try several bad values
Test
john,john@,john@gmail,john@@gmail.com,john gmail.comand@gmail.com, one at a time.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.
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).
<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>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].Remove custom scripts that disable checks
Check theme or plugin settings and custom JavaScript for
novalidateor code that overrides the plugin's validation.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.
Check the input type in your theme
In Online Store > Themes > Edit code, find the form section (for example the contact form or a newsletter block) and make sure the input uses
type="email".Keep the Shopify form tag
Forms built with
{% form 'contact' %}are validated by Shopify on the server. Custom forms posting elsewhere need their own check.
Do not rely on GTM for validation
GTM tags can read the form but should not be your validation. Fix the form itself, then make sure your conversion tag fires only on a successful submit.
Trigger on success, not on click
If your lead event fires on a button click, it counts invalid submissions too. Switch to a thank-you page view or a success event.
Set the field type
Select the input in the Designer, open Element Settings and set Type to Email. Turn on Required.
Publish and retest
Webflow's built-in forms use the browser check. For stricter rules, add a server-side step in whatever receives the form data.
Use the Email field
In the form or survey builder, add the Email standard field rather than a custom text field, and mark it required.
Retest the published page
Open the live link and submit bad values to confirm an error appears.
Use the Email field
In Wix Forms, add the Email field type instead of a short text field, and set it as required.
Check custom code
If you use Velo, make sure your code does not skip or override the default validation.
Use the Email field
Edit the form block, add or change the field to Email and turn on Required.
Test on the live page
Submit bad values on the published page, not only in the editor.
Use type=email and required
Make sure the input has
type="email",required, and that the form does not carrynovalidate.Validate on the server
Check the value again in your handler before saving or sending it. Never trust the browser alone.
Return a clear error
Respond with a readable message and keep the visitor's other entries in the form.
<?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.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('');
}
});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
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
- 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.
- 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.
Related issues
- CNV-029Valid email rejected (plus addressing, new TLDs)Fix guide
- CNV-031Required field can be left blank and the form still submitsFix guide
- CNV-032Validation error message not shown, form just does nothingFix guide
- CNV-037Client and server validation disagree (passes client, server rejects)Fix guide
- CNV-039Business email rule blocks free webmail leads unexpectedlyFix guide
- CNV-041Disposable-email filter blocks legitimate domainsFix guide