Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Laravel Sent Emails Laravel Package

dcblogdev/laravel-sent-emails

Laravel package that captures every email your app sends, storing them in the database or filesystem so you can browse, inspect, and resend them later. Includes a built-in UI and configurable options for debugging mail issues or keeping an audit trail in production.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Email audit trail / compliance: Persist every outbound email (recipient, subject, body, headers, timestamp) to the database via Laravel's MessageSent event — supports auditability, support investigations, and regulated-industry record-keeping without building logging from scratch.
  • Support & debugging workflows: Lets support/ops teams answer "did the customer actually get that email?" without needing SMTP provider dashboards or engineer involvement — a candidate for a self-serve internal tool or admin panel feature.
  • Build vs. buy: This is a thin, single-purpose package (a model, migration, config toggle, and event listener). Adopting it is cheaper than building equivalent event-listener + storage plumbing; the decision is mostly "do we need persisted sent-mail records at all?"
  • Roadmap input: If product needs a customer-facing "communication history" view, or an internal deliverability dashboard, this package is a plausible data layer — but confirm retention, PII handling, and volume implications before committing.
  • Scope discipline: Because it stores full message bodies, it is not a general observability or email-delivery platform. Use it for record-keeping; use your email provider/webhooks for delivery status and bounce handling.

When to Consider This Package

Consider adoption when:

  • You need a durable, queryable record of outbound mail for support, audit, or compliance reasons, and you want it inside your existing Laravel database rather than a third-party tool.
  • Your app already dispatches mail through Laravel's mailer (the package hooks the standard MessageSent event), so integration cost is low.
  • You can accept the storage and PII footprint of persisting message bodies and headers — and have a retention/purge policy.
  • You're on a supported Laravel version (v2.0.8 explicitly adds Laravel 12.x compatibility; the 2.x line targets modern Laravel).

Look elsewhere when:

  • You need delivery status, opens, bounces, or complaint handling — that belongs to your ESP (SES, Postmark, Mailgun) or webhook pipeline, not this package.
  • High-volume mail makes full-body persistence expensive; consider storing metadata only or sampling.
  • You have strict data-residency or PII constraints that forbid email bodies at rest in your primary DB.
  • You want a maintained, feature-rich mail-logging suite with UI, search, and resend — this is a minimal package, and its release cadence is compatibility-driven (this release is a one-line Laravel 12 support PR).

How to Pitch It (Stakeholders)

For executives: A small, low-cost open-source addition that records every email our product sends, giving us a defensible audit trail and faster answers to "did the customer receive it?" questions — without buying another SaaS tool. Risk is low: it's a thin layer over Laravel's built-in mail events, and the latest release keeps us current with Laravel 12.

For engineering: dcblogdev/laravel-sent-emails v2.0.8 is a maintenance release — the only change is Laravel 12.x compatibility (PR #29, first contribution from @laravel-shift). No breaking changes, no new features, no deprecations. It listens to MessageSent, writes to a sent_emails table via a publishable migration and config toggle. Integration is a composer require plus migration; the main things to review are body/header storage volume, PII and retention policy, and whether we want the default listener enabled in all environments. Worth adopting if we need persisted sent-mail records; otherwise skip it and rely on the ESP for delivery telemetry.

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
jinas/dhivatar
store-doc/laravel-storage-driver
plus-it/laravel-translation-manager
diephp/perhaps
diephp/telegraph
osmaviation/spreadsheet
microsoft/fluentui-system-icons
mmccook/php-json-canonicalization-scheme
middlewares/firewall
qubiqx/montapacking
nyoncode/laravel-package-console
pnscripts/filament-broadquill-lite
pnscripts/laravel-sentfold-lite
vleap/mx-sdk-laravel-internal
twidpay/utils
htetmyathlaing/scout-elasticsearch-driver
artisan-toolbox/front-awesome
ls/client-assistant
users-au/laravel-client
cgv/localized-resource