PHPackages                             dachcom-digital/emailizr - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Mail &amp; Notifications](/categories/mail)
4. /
5. dachcom-digital/emailizr

ActivePimcore-bundle[Mail &amp; Notifications](/categories/mail)

dachcom-digital/emailizr
========================

Pimcore Emailizr - create html emails the right way!

v3.2.0(1y ago)17379.5k↓50.3%54GPL-3.0-or-laterPHPCI failing

Since Oct 2Pushed 4mo ago10 watchersCompare

[ Source](https://github.com/dachcom-digital/pimcore-emailizr)[ Packagist](https://packagist.org/packages/dachcom-digital/emailizr)[ Docs](https://github.com/dachcom-digital/pimcore-emailizr)[ RSS](/packages/dachcom-digital-emailizr/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (10)Dependencies (9)Versions (23)Used By (4)

Pimcore Emailizr
================

[](#pimcore-emailizr)

---

Important

This bundle will **not** be compatible with Pimcore 12 or any future Pimcore versions.

For all future development, updates, and documentation, please refer to [opendxp.io](https://www.opendxp.io):

- Access the latest info here:
- Migration of Dachcom Digital Bundles:

**Note:** We are open to partnerships for those interested in porting this bundle to future versions.

For inquiries, please contact:

---

[![Software License](https://camo.githubusercontent.com/cad8c16a3d580a69d8923c98d8de25d21cb00fa54fa60a856a8e1ca657f79db4/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d47504c76332d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Software License](https://camo.githubusercontent.com/e97037437574223b9032209d2ded216fae3bacdc9e5eeed04eb89f2b83a97ba7/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d44434c2d77686974652e7376673f7374796c653d666c61742d73717561726526636f6c6f723d253233666635633563)](LICENSE.md)[![Latest Release](https://camo.githubusercontent.com/0af9d4f80e06ab67829c8f1333c392d6196c4e8fa223f32b3437e76320f1390c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f64616368636f6d2d6469676974616c2f656d61696c697a722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/dachcom-digital/emailizr)[![Tests](https://camo.githubusercontent.com/be7a4e38710893ca9648b199687c9a2c446523a51ebe9c12fb224359a2ab2e3c/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f64616368636f6d2d6469676974616c2f70696d636f72652d656d61696c697a722f2e6769746875622f776f726b666c6f77732f636f646563657074696f6e2e796d6c3f6272616e63683d6d6173746572267374796c653d666c61742d737175617265266c6f676f3d676974687562266c6162656c3d636f646563657074696f6e)](https://github.com/dachcom-digital/pimcore-emailizr/actions?query=workflow%3A%22Codeception%22)[![PhpStan](https://camo.githubusercontent.com/d40388335507017736180bf2126caf505816318e97f10a16c00d2486c942447a/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f64616368636f6d2d6469676974616c2f70696d636f72652d64796e616d69632d7365617263682f2e6769746875622f776f726b666c6f77732f7068702d7374616e2e796d6c3f6272616e63683d6d6173746572267374796c653d666c61742d737175617265266c6f676f3d676974687562266c6162656c3d7068707374616e2532306c6576656c25323034)](https://github.com/dachcom-digital/pimcore-emailizr/actions?query=workflow%3A%22PHP%20Stan%22)

### Requirements

[](#requirements)

- Pimcore ^11.4
- PHP &gt;= 8.1
- Twig &gt;= 3.9

### Release Plan

[](#release-plan)

ReleaseSupported Pimcore VersionsSupported Symfony VersionsRelease DateMaintainedBranch**&gt;=3.1**`11.4``^6.4`08.01.2025Feature Branchmaster**3.x**`11.0``^6.2`30.08.2023Feature Branchmaster**2.x**`10.1` - `10.6``^5.4`21.09.2021No[2.x](https://github.com/dachcom-digital/pimcore-emailizr/tree/2.x)**1.x**`6.0` - `6.9``3.4`, `^4.4`06.12.2017No[1.x](https://github.com/dachcom-digital/pimcore-emailizr/tree/1.x)Installation
------------

[](#installation)

```
"require" : {
    "dachcom-digital/emailizr" : "~3.2.0",
}
```

Add Bundle to `bundles.php`:

```
return [
    EmailizrBundle\EmailizrBundle::class => ['all' => true],
];
```

- Create valid email markup with inky and inline styles.
- Respect editables in pimcore edit mode.

Usage
-----

[](#usage)

Just extend the emailizr layout:

```
{% extends '@Emailizr/layout.html.twig' %}
```

This will include a markup like this. You may want to change it:

```
{% apply spaceless %}
{{ emailizr_style_collector.add('@EmailizrBundle/public/css/foundation-for-emails/foundation.min.css') }}
{% emailizr_inline_style %}
"-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

    {% block headStyles %}

            {% autoescape false %}
                {{ emailizr_inline_style(emailizr_style_collector) }}
            {% endautoescape %}

    {% endblock %}

{% apply inky_to_html %}

        {% block body %}

                            {% block content %}
                            {% endblock %}

             &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
        {% endblock %}

{% endapply %}

{% end_emailizr_inline_style %}
{% endapply %}
```

### Service

[](#service)

If you need to parse values in a custom context, you may use the ContentService.

```
