Laravel Mail Css Inliner

screenshot of Laravel Mail Css Inliner

Inline the CSS of your HTML emails using Laravel

Overview

If you're a Laravel developer facing challenges with email client compatibility, especially regarding CSS rendering, then the Laravel Mail CSS Inliner is worth considering. This package effectively addresses the common issue of email clients that do not appropriately render CSS styles included via <link> or <style> tags. By inlining your CSS directly into your HTML, it enhances the maintainability of your email templates, automating what would otherwise be a tedious manual task.

Installation is a breeze, and since version 5, it requires PHP 8.0 and Laravel 9.0 or higher. If you are using an older version, you can still utilize version 4.* of this package. This elegant solution integrates seamlessly as a Symfony Mailer plugin, ensuring that your CSS is inlined automatically whenever you parse an email template.

Features

  • Automatic CSS Inlining: Inline your CSS without any manual effort as the package automatically processes your styles during email template parsing.

  • Seamless Integration: Designed as a Symfony Mailer plugin, it requires no complex configuration—simply install and it's ready to go.

  • Compatible Versions: Works with Laravel 9.0 and PHP 8.0 or higher. An older version is available for compatibility with previous PHP or Laravel versions.

  • Easy Installation: Install directly via Composer with simple terminal commands, making setup quick and straightforward.

  • Configurable Options: Fine-tune inlining options by modifying the generated configuration file to meet specific project needs.

  • Community Support: Open-sourced under the MIT license, the package encourages contributions and has an active issue resolution process for users.

  • Inspired Design: Built upon the well-regarded concepts from SwiftMailer, offering an efficient and user-friendly drop-in solution for Laravel developers.