Replace any strict address pattern with a lenient check: one @, something before it, a dot after it, no spaces. Show a plain message beside the field, keep what was typed, and send a confirmation email.

Told the address is invalid

A customer fills in a quote request, presses Send and sees a red line: please enter a valid email address. Her address ends in .info, and she has used it for years.

She checks it, types it again and gets the same message. A minute later she closes the page, and the business never learns she was there.

Other customers meet the same wall with a hyphen in the address, a plus sign, or an apostrophe in a surname. Every one of those addresses works; only the form thinks otherwise.

The pattern behind the message

Most forms check an address against a pattern written or copied by whoever built the form, often from an old tutorial, pasted in unchanged.

A typical home-made pattern allows letters, numbers and dots before the @, one name after it, and an ending of two or three letters. Anything outside that shape is declared invalid.

The rules for real addresses are far looser. Endings such as .info, .museum and .travel have existed for years, and the part before the @ may contain characters most patterns never expected.

Real addresses that strict checks refuse

These are the addresses that most often fail a home-made check, though every one of them receives mail:

The last group is common on phones. In an ordinary text box, many phone keyboards capitalise the first letter and add a space after a suggested word, and a strict check rejects both.

What a lenient check looks for

A sensible check asks only what the shape of an address can tell you: one @ sign, something before it, and something after it that contains a dot with characters on both sides.

Trim spaces from both ends before checking, and do not reject capitals, which mail services almost always ignore. Anything stricter turns away real people without catching the mistakes that matter.

No pattern can tell whether an address exists. A well-shaped address with one letter wrong passes any check and still goes nowhere, which is why a confirmation email matters more than the pattern.

A message beside the field

When the check does fail, the message should sit next to the email field, in plain words, saying what is missing: the @ sign, or the part after it.

Keep everything the person typed. A form that clears itself after an error asks people to start again, and many will not.

A general warning at the top of the page is easy to miss, especially on a phone, where the top has scrolled away.

A worked example

A running club in Squamish holds a spring trail race, and entries come through a registration form on its website. The form went up four years ago and had not been looked at since.

Each spring a few runners phoned the volunteer registrar to say the form would not take their address. Some entered on race morning instead; others did not enter at all.

The club's web developer found the old pattern: letters, numbers and dots before the @, and endings of two or three letters only. A member's .info address, a hyphenated surname and a plus sign all failed.

The pattern gave way to the lenient check, spaces are trimmed, and the message beside the field names the missing part. Every entry triggers a confirmation email with the bib pickup time.

An entrant who mistypes an address no longer vanishes. The thank-you page says to email the registrar if the confirmation has not arrived, so the slip comes to light weeks before race day.

The confirmation email does the real test

Send an automatic email the moment the form is submitted, to the address entered. Put the details people will want later in it: what they asked for, the date, the next step.

On the thank-you page, say that the email is on its way, and what to do if nothing turns up soon, starting with a look in the junk folder.

A slip such as a misspelled mail service or an ending of .con comes to light here, while the person still remembers filling in the form.

Where the old pattern hides

A site that rejects addresses in one form usually does it in several. Check the contact form, the newsletter sign-up, the checkout and any account registration.

The same pattern can sit in the browser and again on the server, and both copies need changing. A fix in one place leaves the other still turning people away.

Testing with awkward addresses

Make a short list of test addresses that break the old rules: one ending in .info, one with a hyphen, one with a plus sign, one with an apostrophe, one typed with a capital.

Try each in every form on the site, from a desk and from a phone, and check that the automatic email reaches each address that exists.

Keep the list, and run it whenever a form changes or the site is rebuilt, before the old pattern creeps back.

The counter-case

Forms that draw a steady stream of junk from automated programs can make a strict address check look like a defence against them.

It is a weak one. Programs fill in well-shaped addresses easily, while the people turned away are real. Junk is better handled by other means on the server.

Where an address must be right, as on an order that sends a receipt, the answer is still the confirmation email, not a stricter pattern. Only delivery proves an address works.

Letting every real address through

  1. List every form on the site that asks for an email.
  2. Try the test addresses in each one.
  3. Replace strict patterns with a lenient check.
  4. Trim spaces before checking.
  5. Put the error message beside the field, in plain words.
  6. Keep what was typed when a form shows an error.
  7. Send a confirmation email the moment a form is submitted.

Step seven does what no pattern can. A delivered email proves the address is real and typed correctly, and a missing one prompts the person to act while they still care.

Another home-made check that turns away real input, a form that refuses February 29, is taken apart in date checks that have never met a February 29.


Frequently asked questions

Why does my form reject a real email address?

It probably checks addresses against an old pattern that allows only short endings and plain letters. Addresses ending in .info, or with hyphens or plus signs, then fail.

Are addresses with a plus sign real?

Yes. Some mail services deliver name+word to the same mailbox as name, and people use it to sort or track mail. A form should accept it.

What should an address check look for?

One @ sign, something before it, and something after it that contains a dot. Trim spaces first. Anything stricter rejects real addresses without catching real mistakes.

Where should the error message go?

Beside the email field, in plain words, saying what is missing. Keep everything the person typed, so they can correct one field without starting again.

Should forms ask for the address twice?

It catches some slips, but many people paste the same mistake into both boxes. A confirmation email sent at once is a far better test.

How do I test my forms?

Try a short list of awkward real addresses, with .info, a hyphen, a plus sign and an apostrophe, on a computer and a phone, and check each confirmation arrives.

West Coast Media Solutions Inc. provides web design, web development, hosting, digital marketing, and business consulting to organisations across Canada, drawing on more than twenty-five years in the field.

Customers told their address is invalid?

Send us the page your form is on, and we will try it with awkward real addresses and fix the check that refuses them.

Start a Conversation