eduardokum/laravel-mail-auto-embed
Laravel package that automatically embeds images in outgoing mailables, turning remote or local image URLs into inline CID attachments so they render reliably in every email client—no manual attachment wiring or template changes required.
$message->embed() calls.embed() calls or hand-rolled middleware. Adopting the package is a one-line composer install and a small config file; building in-house is a maintenance tax you'd otherwise accept. The MIT license makes this a low-commitment, forkable decision.Adopt it when:
Look elsewhere when:
Also weigh the failure mode: if the package is abandoned, the fallback (manual embed() or a fork) is cheap, which lowers the downside risk considerably.
To executives: A small, free (MIT), open-source add-on that makes our transactional emails look professional — logos and images render reliably instead of showing as broken boxes in Outlook and corporate inboxes. It's a one-day integration with no new vendor, no recurring cost, and a trivial exit path if we ever want to drop it. Net effect: better customer perception at near-zero cost and risk.
To engineering: It hooks into Laravel's mail pipeline and auto-embeds local <img> sources as CID attachments, replacing repetitive $message->embed() boilerplate across every Mailable. Configuration is path/disk-based; integration is composer + config, with no service changes to your send infrastructure. Caveats to flag: single-maintainer dependency, moderate community size (~171 stars), and a need to confirm Laravel version compatibility against your current framework before merge. Recommend adopting behind a quick spike in staging, with the manual embed() fallback documented in case of abandonment.
How can I help you explore Laravel packages today?