PHP code example of puz / mail_autoembed
1. Go to this page and download the library: Download puz/mail_autoembed library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
puz / mail_autoembed example snippets
$mailer = new \Swift_Mailer;
$mailer->registerPlugin(new \Puz\Mail\AutoEmbed\ImagesToAttachments);
// 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,
...
];