2017 © Pedro Peláez
 

library mail_autoembed

Automatically embed all image sources in your emails

image

puz/mail_autoembed

Automatically embed all image sources in your emails

  • Sunday, July 17, 2016
  • by Molteber
  • Repository
  • 2 Watchers
  • 15 Stars
  • 12 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Puz - Auto embed for images Build Status

This package is mainly made for Laravel 5.2, but is fully useful for every application which uses Swift Mailer, (*1)

To install: composer require puz/mail_autoembed, (*2)

To use without laravel:, (*3)

$mailer = new \Swift_Mailer;
$mailer->registerPlugin(new \Puz\Mail\AutoEmbed\ImagesToAttachments);

To use with laravel ^5.2:, (*4)

// 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. * beforeSendPerformed * Right before the email is sent, it will scan the email for tags and it's src attribute. It will accept data:image, local image path and remote image * sendPerformed * Right after the mailer have sent the email away, it will go ahead and delete the temporary created images (for remote and data:image)., (*5)

Contributions

Any suggestion or code improvement will be gladly accepted., (*6)

Future features

  • Save all the images which is attached. This can be useful in situations where the user send the email from a text editor and you need to display the email on your website as well. Good thing you saved the image right?!

The Versions

17/07 2016

dev-master

9999999-dev

Automatically embed all image sources in your emails

  Sources   Download

MIT

The Requires

 

The Development Requires

by Morten Mehus

laravel mail email image embed attach

08/06 2016

0.1.0

0.1.0.0

Automatically embed all image sources in your emails

  Sources   Download

MIT

The Requires

 

The Development Requires

by Morten Mehus

laravel mail email image embed attach