使用 Laravel 将 HTML 邮件的 CSS 内联
Most email clients won't render CSS (on a `` or a `
Hey you
Or the link tag:
```html
Hey you
Into this:
Hey you
This package needs Laravel 9.x.
Begin by installing this package through Composer. Require it directly from the Terminal to take the last stable version:
composer require fedeisas/laravel-mail-css-inlinerAt this point the inliner should be already working with the default options. If you want to fine-tune these options, you can do so by publishing the configuration file:
php artisan vendor:publish --provider='Fedeisas\LaravelMailCssInliner\LaravelMailCssInlinerServiceProvider'and changing the settings on the generated config/css-inliner.php file.
composer install./vendor/bin/phpunitPlease, let me know! Send a pull request or a patch. Questions? Ask! I will respond to all filed issues.
This package is greatly inspired, and mostly copied, from SwiftMailer CSS Inliner. I just made an easy drop-in solution for Laravel.
This package is open-sourced software licensed under the MIT license
暂无开放 Issues,或尚未同步最近议题。