One disposable address. Three clear hours.Get email

Tutorials

How to Validate Email Verification in GitLab 19.5 Review Apps?

For a reliable Review App email test, complete the registration-to-verification loop while the matching MR environment is still accessible. This guide follows the test timeline, separates pipeline and email evidence, and explains what to verify after an environment is stopped.

The pipeline is green, but the registration email is missing or points to the wrong app.

Fastest fix: complete registration, read the test message, open its verification link, and confirm the account state while the matching Review App is still accessible. A passing job or a stopped environment does not prove that email verification passed.

This guide is for developers testing their own product in GitLab Review Apps, QA engineers validating registration flows, and CI/CD owners responsible for preview-environment cleanup. Use it only for your own product or an environment you are authorized to test.

Last updated October 25, 2026; checked against the GitLab 19.5 release information and the current Review Apps, environments, and CI/CD variable documentation. The GitLab 19.5 release page lists October 15, 2026 as its release date. That version is relevant context, not evidence of a new GitLab email-testing feature.

Acceptance evidence versus a green pipeline

A GitLab 19.5 Review Apps email verification test is complete only when the evidence connects the current test run to the expected application outcome. Treat these as separate checks:

  • Pipeline evidence: the relevant CI job completed successfully. This tells you about that job, not whether the message reached an inbox.
  • Environment evidence: the Review App URL is available and belongs to the merge request under test. A successful deployment job alone does not prove the page is reachable.
  • Send evidence: the application or mail service accepted a send request. That is not the same as a message being received.
  • Inbox evidence: the expected message is readable at the test address and can be associated with this run.
  • Verification evidence: opening the link reaches the intended preview app and the account shows the expected verified state.
  • Cleanup evidence: after stopping the environment, the resources your own deployment and test setup created have been handled as intended.

The acceptance decision is therefore a chain, not a single green indicator: matching MR environment → registration request → matching email → valid return to that environment → expected account state. If one link is missing, record the specific gap instead of marking the whole email flow as passed.

Before the MR run: isolate the test and its recipient

Give each test run a clear identity before triggering registration. Use a test account and a test inbox that your team can inspect, and record a run identifier alongside the merge request or pipeline. The identifier can be part of the test account name or a value included in the registration data, provided your application allows it safely.

This association matters when several preview environments are active. If they share a recipient and the test reads whichever message appears first, an old message or another MR’s message can create a false pass. Match the message using available details such as the recipient, account, subject, message body, and the run information your application includes. Do not assume a particular inbox supports search, APIs, forwarding, or a fixed retention period; verify the capability before building the test around it.

Check the application’s configured base URL before the run. Verification messages should target the Review App being tested, not localhost, staging, or production. A message can be delivered successfully and still fail acceptance if its link sends the user to the wrong environment.

Keep credentials and private test data out of public job logs and artifacts. Review which CI variables are exposed to the job and who can access the resulting logs. GitLab documents predefined variables such as CI_ENVIRONMENT_NAME and CI_ENVIRONMENT_URL; use the predefined CI/CD variable reference to understand available environment context, and review CI/CD variable security guidance before making sensitive values available to a pipeline.

For test data that could identify a real person, use fictional values and limit who can read the inbox and logs. Our email privacy guidance can help frame that data-minimization decision. Do not use a colleague’s personal mailbox as a convenient test fixture; it mixes test messages with real correspondence and can expose information beyond the people running the test.

After deployment: confirm the Review App itself

A deployment job can succeed while the URL is unavailable, protected from the test runner, or configured with the wrong application settings. Open the preview URL before registering. Confirm that it loads the app build for the intended MR, that its access controls permit the test, and that its registration page uses the expected environment configuration.

GitLab’s Review Apps guide describes Review Apps as dynamic environments for branches or merge requests. Compare the environment name and URL shown for this deployment with the MR you intend to test. GitLab’s CI/CD environments documentation explains environment behavior and related actions; use the project’s actual environment configuration rather than inferring identity from a green deployment job.

Before submitting the form, verify the host in the browser and, where available, the environment URL recorded by the job. Check that the app does not silently use a shared staging base URL for outbound verification links. If the preview page redirects to another host, resolve that configuration first. Testing the email before confirming the destination can produce a valid message for the wrong environment.

During registration: connect the email to this run

Trigger registration through the same interface your intended user would use. Use the prepared test account and recipient, then inspect the message received for that address. This checks more than whether an email was generated: it also verifies the recipient, the message content, and the destination embedded in the verification link.

Use a deliberate correlation method rather than relying on arrival order. For example, use a unique test account identifier if your application supports one, or compare message details with the current MR and run record. Do not put secrets or personal information in a subject line just to make a message easy to find. If the application does not include run-specific details in messages, record the recipient and trigger time in the test log, then compare against the message without treating timing alone as proof of identity.

There is no universal delivery time that makes a message valid or invalid. Avoid hard-coded assumptions about how quickly a test email must arrive. Instead, use the timeout and retry policy appropriate to your own test infrastructure, and report separately whether the app attempted to send, whether the inbox received the message, and whether the content was correct. A send request that returned successfully is not evidence that the recipient’s mailbox accepted or displayed the message.

A test inbox is one possible recipient for this workflow, but suitability depends on the actual capabilities you need: for example, whether the test can read messages, retain them long enough for review, or expose a supported way to retrieve them. Check TempRoute’s current page for the capabilities it actually offers before selecting it for a Review App test. The TempRoute inbox is an option to assess for temporary test mail; do not assume a feature or delivery outcome that the page does not confirm.

Decision point: choose a recipient that fits the test

The right recipient depends on whether the test is disposable, needs follow-up, or must preserve a durable account. Compare the trade-offs before wiring the address into CI.

Option Best fit Main risk or constraint Acceptance check
Temporary test inbox Short-lived registration and verification checks Access, retention, and retrieval features vary by service; confirm them before relying on them Can the test read the message and complete the link flow during the run?
Mailbox alias or plus-address Repeated tests that should arrive in a durable mailbox Provider behavior and filtering can differ; aliases still deliver into a shared account Can you reliably distinguish this run’s message without exposing a personal inbox?
Dedicated test mailbox Longer-lived test accounts and repeated QA cycles Requires account setup, access control, and ongoing maintenance Can the team retrieve messages and manage the account securely over time?
Production or employee address Not suitable for routine preview testing Mixes test and real mail, risks exposing personal data, and can pollute account state Replace it with a controlled test recipient before acceptance.

A disposable address is not a universal substitute for a maintained test mailbox. If your test needs later password recovery, ongoing notifications, or replies, choose a durable, controlled recipient instead. For a one-off registration check, a temporary inbox may be simpler, provided its current documented capabilities match the test. Our mailbox expiry planning guide covers why message availability should be considered before a test depends on later access.

Open the verification link while the matching Review App is still available. Check the destination host before completing the action. It should return to the expected preview environment, rather than a local URL, another MR, staging, or production.

Then check the application response and the account itself. A success banner is useful evidence, but it is not enough if the account record remains unverified. Confirm the state your product defines as successful, using the UI or an authorized test assertion. Keep the evidence distinct:

  • The email was readable at the intended test address.
  • Its verification link targeted the current Review App.
  • Opening the link produced the expected application response.
  • The account changed to the expected verified state.

If the link does not open, separate the possible causes. The environment may already be stopped; the link may have an incorrect base URL; or the application may have received the request but failed to process it. Compare the URL, the environment status, and the account state before assigning the failure to email delivery. A message can be present and readable even when the app behind its link is no longer available.

After stopping the Review App: check cleanup separately

Stopping a preview environment ends or changes its availability; it does not by itself prove that every resource created for the deployment has been removed. This distinction matters for databases, cloud resources, test accounts, and test data managed outside the environment record.

GitLab’s environment documentation describes stop actions, including on_stop jobs, and notes that a forced stop can skip the configured cleanup action. Check the environment stop behavior against the way your project stops preview environments. In particular, do not treat an environment showing Stopped as proof that an external deployment or test fixture was deleted. Inspect the cleanup job and the system that owns each resource.

GitLab 19.5’s release date is confirmed by the official release information, but the release does not establish a special email-verification workflow. The relevant acceptance boundary comes from the environment lifecycle and your application’s own mail and account behavior. If GitLab’s documentation or later release notes change, recheck the stop behavior before relying on a previous cleanup assumption.

Keep a compact record for each run: the MR or run identifier, environment URL, test recipient, message evidence, verification result, account-state result, and cleanup result. Store only what is needed to reproduce or review the test, and restrict access to logs that contain addresses or account identifiers. This gives the team a way to distinguish “pipeline passed” from “email flow passed” without retaining unnecessary personal data.

FAQ

How should I test registration verification emails in a GitLab Review App?

Deploy the app for the target merge request, open that preview URL, and trigger registration with a test account and a test inbox you control. Associate the message with the current run, then open its verification link and confirm that it returns to the same preview app and changes the expected account state. Keep the environment available until those checks are complete.

You can inspect the message and its destination after the environment stops, but that does not prove the full flow works. The stopped app may no longer serve the route, or the link may point to another environment. For acceptance evidence, complete the click-through and account-state check while the matching Review App is reachable; investigate a stopped environment separately.

Does GitLab 19.5 force-stopping an environment run its cleanup job?

Do not assume it does. GitLab’s environment documentation says a forced stop can skip the configured on_stop action. Treat the environment’s stopped status as evidence of a state change, not proof that external deployment resources, test accounts, or test data were removed. Check your own cleanup job and the resources it is responsible for.

What should I check when CI passes but the verification email is missing?

Separate the evidence. Confirm that the job triggered registration against the intended preview URL, that the application made a send request, and that your test inbox received a message associated with the current run. Then inspect the recipient, message content, and verification destination. A successful pipeline job alone does not establish delivery or a working verification link.

Choose the recipient after checking its real capabilities

For an acceptance test, the important question is not whether an address is temporary; it is whether your test can retrieve the right message and finish the verification loop before the preview disappears. If the test is only for a short-lived registration flow, check TempRoute’s current published capabilities and decide whether they fit your workflow. If the account must remain recoverable or receive mail later, use a controlled durable mailbox instead. Either way, keep the test recipient separate from personal mail and require evidence from the message, link, account state, and cleanup—not just the pipeline.

Frequently asked questions

How should I test registration verification emails in a GitLab Review App?

Deploy the app for the target merge request, open that preview URL, and trigger registration with a test account and a test inbox you control. Associate the message with the current run, then open its verification link and confirm that it returns to the same preview app and changes the expected account state. Keep the environment available until those checks are complete.

Can I still validate a verification link after its Review App has stopped?

You can inspect the message and its destination after the environment stops, but that does not prove the full flow works. The stopped app may no longer serve the route, or the link may point to another environment. For acceptance evidence, complete the click-through and account-state check while the matching Review App is reachable; investigate a stopped environment separately.

Does GitLab 19.5 force-stopping an environment run its cleanup job?

Do not assume it does. GitLab’s environment documentation says a forced stop can skip the configured on_stop action. Treat the environment’s stopped status as evidence of a state change, not proof that external deployment resources, test accounts, or test data were removed. Check your own cleanup job and the resources it is responsible for.

What should I check when CI passes but the verification email is missing?

Separate the evidence. Confirm that the job triggered registration against the intended preview URL, that the application made a send request, and that your test inbox received a message associated with the current run. Then inspect the recipient, message content, and verification destination. A successful pipeline job alone does not establish delivery or a working verification link.

Choose an inbox route based on task duration

Create a disposable email for an immediate verification code; if you’ll need account recovery or notifications later, log in to create a long-term forwarding alias.

Create disposable emailCreate forwarding alias