2017 © Pedro Peláez
 

library swiftmailer-image-embed

Swiftmailer plugin to automatically embed images into message

image

hexanet/swiftmailer-image-embed

Swiftmailer plugin to automatically embed images into message

  • Tuesday, July 10, 2018
  • by martin-damien
  • Repository
  • 7 Watchers
  • 6 Stars
  • 5,440 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 3 Forks
  • 0 Open issues
  • 6 Versions
  • 16 % Grown

The README.md

Swiftmailer Image Embed Plugin

Build Status Total Downloads Latest Stable Version, (*1)

Swiftmailer plugin to automatically embed images into message by using CID (Content-ID)., (*2)

See https://swiftmailer.symfony.com/docs/messages.html#embedding-inline-media-files for more informations., (*3)

Example:, (*4)

<html>
    <head></head>
    <body>
        <p>some text</p>
        <img src="images/swiftmailer_rocks.png" alt="placeholder">
    </body>
</html>

With the plugin the following email will be generated:, (*5)

<html>
    <head></head>
    <body>
        <p>some text</p>
        <img src="cid:1eda5ca8666e64003917d06b34bbd2f7@swift.generated" alt="placeholder">
    </body>
</html>

Installation

composer require hexanet/swiftmailer-image-embed

Usage

use Hexanet\Swiftmailer\ImageEmbedPlugin;

$mailer = new Swift_Mailer($yourTransport);

$mailer->registerPlugin(new ImageEmbedPlugin());

or for symfony in your services.yaml:, (*6)

Hexanet\Swiftmailer\ImageEmbedPlugin:
    arguments:
        - '%kernel.root_dir%/../web/'
    tags: [swiftmailer.default.plugin]

The arguments are optional., (*7)

Credits

Developed by Hexanet., (*8)

License

Swiftmailer Image Embed Plugin is licensed under the MIT license., (*9)

The Versions

10/07 2018

dev-master

9999999-dev https://github.com/Hexanet/swiftmailer-image-embed

Swiftmailer plugin to automatically embed images into message

  Sources   Download

MIT

The Requires

 

The Development Requires

by Nicolas Hart

swiftmailer image

10/07 2018

v2.0.2

2.0.2.0 https://github.com/Hexanet/swiftmailer-image-embed

Swiftmailer plugin to automatically embed images into message

  Sources   Download

MIT

The Requires

 

The Development Requires

by Nicolas Hart

swiftmailer image

15/06 2018

v2.0.1

2.0.1.0 https://github.com/Hexanet/swiftmailer-image-embed

Swiftmailer plugin to automatically embed images into message

  Sources   Download

MIT

The Requires

 

The Development Requires

by Nicolas Hart

swiftmailer image

29/03 2018

dev-services-yaml

dev-services-yaml https://github.com/Hexanet/swiftmailer-image-embed

Swiftmailer plugin to automatically embed images into message

  Sources   Download

MIT

The Requires

 

The Development Requires

by Nicolas Hart

swiftmailer image

15/12 2017

v2.0.0

2.0.0.0 https://github.com/Hexanet/swiftmailer-image-embed

Swiftmailer plugin to automatically embed images into message

  Sources   Download

MIT

The Requires

 

The Development Requires

by Nicolas Hart

swiftmailer image

19/11 2015

v1.0.0

1.0.0.0 https://github.com/Hexanet/swiftmailer-image-embed

Swiftmailer plugin to automatically embed images into message

  Sources   Download

MIT

The Requires

 

The Development Requires

by Nicolas Hart

swiftmailer image