# Previews and mail

A Workspace preview opens a web process running inside the sandbox. It reflects the current product; it is not a separate copy or deployment.

## Open the preview

Open **Preview** to view the sandbox's primary web port. Framework templates configure this automatically. Imported projects can define the primary port and start command in `.phpsandbox/setup.json`.

If the page does not open, check process status and logs before changing routing. A healthy container does not necessarily mean the application server is listening.

## Share safely

Preview URLs can expose development state. Use preview protection for private work and avoid placing credentials in URLs. Use publishing when the product needs a durable destination outside the sandbox.

## Inspect outgoing mail

When mail capture is enabled, application messages appear in the Workspace mail viewer instead of being delivered to real recipients. Inspect the recipient, subject, HTML and text bodies, and links while testing account or notification flows.

Mail capture is a development tool. Do not use it as proof that a production mail provider accepted or delivered a message.

See [Previews and sharing](/docs/concepts/previews) for preview routing, protection, and access details.
