Skip to content
FunnelGuard

Fix guide by FunnelsGuard

Confirmation email sent with test or staging content: fix it

DLV-041Medium impactPartlyBy FunnelGuardPublished Updated
On this page

What this issue is

A confirmation email (or autoresponder) is the automatic message a lead receives right after submitting a form, booking or buying. This issue means that message carries content that was meant only for testing or for a staging site (a private copy of your website used to try changes).

Typical leftovers: a subject such as TEST - Thanks for your enquiry, body text like 'lorem ipsum' or 'Replace this text', links to staging.example.com or a .local domain, a developer's name or address in the signature, and dummy prices or order numbers.

Why it costs you leads or sales

The confirmation email is the first thing a new lead reads from you. Placeholder text looks careless and makes people doubt you. A staging link can lead to a password prompt, a broken page or a store that cannot take orders, so the next step you wanted never happens.

It can also send real leads into the wrong place. A staging link may record the visit in a test analytics property, so the follow-up click is not credited to your campaign.

Where a test-content email breaks the journey
  1. Lead submits formSubmission accepted
  2. Confirmation email arrivesSubject says TEST, link goes to staging
  3. Lead clicks the linkPassword wall or 404
  4. Booking or purchaseNever reached

The form works, but the email the lead receives points to staging.

Clicks from the confirmation emailExample numbers
Clicks from the confirmation email (example)Staging link: 2 %; Live link: 30 %01223230Staging linkLive link%

Example: share of leads who click the next-step link in the email, with a staging link versus the live link. Numbers are illustrative.

How to check if your site has it

Check by submitting a real test
  1. Submit your own form

    Use an inbox you control, such as a Gmail address. Go through the live site, not an admin preview.

  2. Read the received email, not the template

    Check the subject, preview text, body, signature, footer and sender name. Look for 'test', 'lorem', 'sample', 'dummy', 'TODO' and 'staging'.

  3. Hover over every link

    Check each link and button points to your live domain. Click them all.

  4. View the source

    In Gmail choose the three dots, then 'Show original'. Search for your staging hostname and for 'localhost'.

  5. Repeat for each form and variant

    Different forms, languages and offers often use separate templates. Test each.

How to fix it

The cause is nearly always one of three things: copy that was never finished, a template copied from staging to live, or a setting (site URL, environment variable) that still points to staging. Fix it where your email is built.

Where to change the email on each platform
  1. Edit the notification

    In Gravity Forms, WPForms, Contact Form 7 or similar, open the form's notifications or Mail tab and fix subject, body and From address.

  2. Check the site URL

    Go to Settings, General. WordPress Address and Site Address must be the live domain. If a staging database was copied over, links in templates may need a search-and-replace.

Example guard against placeholder content before sendingjavascript
const banned = [/lorem ipsum/i, /\bTEST\b/, /staging\./i, /localhost/i];

function assertSafeToSend(subject, body) {
  const text = subject + ' ' + body;
  const hit = banned.find((re) => re.test(text));
  if (hit && process.env.NODE_ENV === 'production') {
    throw new Error('Email blocked, contains placeholder content: ' + hit);
  }
}
The same confirmation email

Before

  • Subject: TEST - Thanks for your enquiry
  • Body: Lorem ipsum dolor sit amet
  • Button links to staging.example.com/book
  • Reply-to: dev@agency.test

After

  • Subject: Thanks, we have your enquiry
  • Body: what happens next and when
  • Button links to www.example.com/book
  • Reply-to: a monitored team inbox

How to confirm it's fixed

After the fix
  • Submit each live form with your own address and read the received email
  • Subject, preview text, body and signature contain no placeholder words
  • Every link and button opens a live page
  • The source contains no staging hostname
  • Sender name and reply-to are real and monitored
  • Check on mobile and in one other mail app

How to prevent it happening again

How test content usually reaches customers
  1. Week 1

    Template drafted with placeholder text on staging

  2. Week 2

    Staging copied to the live site, template comes with it

  3. Week 2

    Real leads start receiving the email

  4. Week 3

    Someone notices, or a customer replies

Habits that stop it
  • Add 'read the received email' to your launch checklist
  • Keep staging and live settings separate; do not copy email settings between them
  • Use a real domain for links, never hard-coded staging URLs
  • Name test templates clearly and delete them once used
  • Re-test after every migration, theme change or email tool change
  • Run a scheduled test submission so a regression is caught within a day

How FunnelGuard handles this

FunnelGuard detects this issue only partly. A robot visitor submits your real form on a schedule, and the test lead's email is checked with body_contains and text checks: you list words or strings (for example 'test', 'lorem ipsum' or your staging hostname) and FunnelGuard flags the run if the received email body contains them. A failure is re-checked from a second region before one alert goes out with a screenshot and a likely cause.

Questions people ask

Why did my customer get a confirmation email saying 'test'?

Most likely the subject or body was written as a draft and never replaced, or a template was copied from a staging site. Open the form's notification or automation, fix the text and submit a real test to read the result.

Why does my confirmation email link to a staging site?

A hard-coded URL, a copied database or a site address setting still points to staging. Search your templates for the staging hostname, replace it with your live domain and check the site URL setting on your platform.

How do I check what my autoresponder actually sends?

Submit your own live form with an inbox you control and read the received email. Check subject, body, signature and every link, and use 'Show original' in Gmail to search the source for staging or test strings.

Can I stop test content going out to real customers?

Yes. Keep staging and live email settings separate, add a pre-launch step to read the received email, and in custom code block sending when the body contains placeholder strings. A scheduled test submission catches regressions.

Can FunnelGuard detect test content in a confirmation email?

Partly. It checks the received test email body for words and strings you specify, such as 'test' or your staging hostname. It cannot judge whether copy is correct, so you should also review templates by hand.

Is a test email to customers a legal problem?

It is usually a quality and trust problem rather than a legal one. It becomes more serious if the email includes internal data or wrong prices, so review content carefully and get legal advice if unsure.

Should I use my live form to test the email?

Yes, because that is the only way to see what customers get. Use an address you control, and mark or filter the test lead so it does not enter your sales pipeline or ad reports.

Does FunnelGuard catch this?

Partly

FunnelGuard checks part of this.

How: body_contains/text checks.

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.