Automatically embed all image sources in your emails
puz/mail_autoembed is a Laravel package for automatically embed all image sources in your emails.
It currently has 14 GitHub stars and 22 downloads on Packagist (latest version 0.1.0).
Install it with composer require puz/mail_autoembed.
Discover more Laravel packages by puz
or browse all Laravel packages to compare alternatives.
Last updated
This package is mainly made for Laravel 5.2, but is fully useful for every application which uses Swift Mailer
To install: composer require puz/mail_autoembed
To use without laravel:
$mailer = new \Swift_Mailer;
$mailer->registerPlugin(new \Puz\Mail\AutoEmbed\ImagesToAttachments);
To use with laravel ^5.2:
// Add the service provider in the list of your service providers in app.php. It MUST be added after laravels mail service provider
$providers[
...
\Puz\Mail\AutoEmbed\AutoEmbedServiceProvider::class,
...
];
This package will register two plugins to the mailer.
Any suggestion or code improvement will be gladly accepted.