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.
- Lead submits formSubmission accepted
- Confirmation email arrivesSubject says TEST, link goes to staging
- Lead clicks the linkPassword wall or 404
- Booking or purchaseNever reached
The form works, but the email the lead receives points to staging.
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
Submit your own form
Use an inbox you control, such as a Gmail address. Go through the live site, not an admin preview.
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'.
Hover over every link
Check each link and button points to your live domain. Click them all.
View the source
In Gmail choose the three dots, then 'Show original'. Search for your staging hostname and for 'localhost'.
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.
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.
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.
Open notification templates
Go to Settings, Notifications, open Order confirmation or the customer notification and fix the text.
Check Liquid and links
Look for hard-coded URLs to a development store and replace them with {{ shop.url }} or the live domain.
Not the source
GTM does not send email. Check that no tag or variable adds a staging URL to your form's hidden fields, which some templates then insert into the email.
Webflow form settings
Webflow forms send notifications to you only. If customers get a confirmation, it comes from an integration (Zapier, Make or your email platform). Edit it there.
Check the connected automation
Open the automation and replace test subject lines and links.
Open the workflow
Go to Automation, open the workflow triggered by the form, and review each Email action.
Edit the template
Go to Marketing, Emails, Templates and fix any copied test content. Check links and the sender name.
Edit automations
Go to Automations in the dashboard, open the form-submission automation and edit the email's subject and content.
Edit the form's auto-reply
Open the form block's storage and email settings and review the auto-reply message. For Email Campaigns, edit the automated email.
Find hard-coded values
Search the code for staging hostnames and test strings. Move the base URL and sender address to environment settings so live and staging differ by configuration, not by edited code.
Block test content in production
Add a guard that refuses to send when the body contains known placeholder strings.
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);
}
}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
- 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
Week 1
Template drafted with placeholder text on staging
Week 2
Staging copied to the live site, template comes with it
Week 2
Real leads start receiving the email
Week 3
Someone notices, or a customer replies
- 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.
Related issues
- DLV-029Confirmation email has unfilled merge tags (Hi {{first_name}})Fix guide
- DLV-033Wrong offer, price or product named in the confirmationFix guide
- DLV-035Old branding, logo or company name in the email templateFix guide
- DLV-040Autoresponder references a booking link that is no longer validFix guide
- DLV-046Customer gets the internal notification instead of the confirmationFix guide
- DLV-047Autoresponder sends internal data (other leads, internal notes)Fix guide