# spatie/laravel-mail-preview

A mail driver to quickly preview mail

Repository: https://github.com/spatie/laravel-mail-preview
Canonical: https://ross.abutalabs.com/products/laravel-mail-preview
Homepage: https://spatie.be/open-source
Language: PHP
License: MIT
License Family: permissive
Topics: laravel, mail, testing
Last push: 2026-05-21T10:31:53+00:00

## Health v2 (maintenance only)
Score: 76/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 83, release rhythm 52, longevity 100
- inputs: {"age_days": 3826, "days_push": 104, "days_rel": 104, "gap_med": 226.5, "n_releases_24m": 3}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1293, forks 81 (observed 2026-08-28T04:04:16.110026+00:00)

## What it is
A Laravel package that adds a 'preview' mail transport which stores sent emails locally and shows an overlay link to preview them. It is designed for testing emails in local, non-production environments.

## Use cases
- preview emails sent from a Laravel app locally
- test email sending without a real SMTP server
- view recently sent emails in the browser via an overlay
- debug email content during local development
- avoid sending real emails in dev and staging environments

## When to choose
- you develop Laravel apps that send email and want quick local previews
- you want a lightweight alternative to tools like Mailtrap or MailHog
- you need clickable links to the last sent emails while testing

## When to avoid
- you need to capture emails in production or from non-Laravel apps
- you require a full fake SMTP server for integration tests across services
- your project is not built on Laravel

## Facets
- artifact type: library
- maturity: active
- function: email, testing, middleware
- domain: web-development, developer-tools, testing, email
- platform: php
- tags: laravel-package, mail-driver, mail-preview, local-development, spatie, laravel

## Member repositories
- spatie/laravel-mail-preview (main) score 76

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:16.110026+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T04:54:43.035493+00:00, confidence not recorded.
  - readme: https://github.com/spatie/laravel-mail-preview (fetched 2026-08-28T04:04:16.110026+00:00, sha 6061d1e02b77)
  - homepage: https://spatie.be/open-source (fetched 2026-08-29T12:11:03.680948+00:00, sha 6ed5abf69535)
  - site_page: https://spatie.be/docs (fetched 2026-08-29T12:11:03.690420+00:00, sha 08e024d86d95)
  - site_page: https://spatie.be/about-us (fetched 2026-08-29T12:11:03.692328+00:00, sha d3cb88e4b34c)
- Data as of 2026-08-30T08:39:29.467469+00:00.
