2017 © Pedro PelĂĄez
 

pimcore-bundle emailizr

Pimcore 5.x Emailizr - create HTML E-Mails the right way!

image

dachcom-digital/emailizr

Pimcore 5.x Emailizr - create HTML E-Mails the right way!

  • Tuesday, July 24, 2018
  • by solverat
  • Repository
  • 7 Watchers
  • 3 Stars
  • 15,278 Installations
  • PHP
  • 2 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 7 Versions
  • 21 % Grown

The README.md

Pimcore Emailizr

Join the chat at https://gitter.im/pimcore/pimcore Software License Latest Release Tests PhpStan, (*1)

Requirements

  • Pimcore: ^11.0
  • PHP: >= 8.1
  • Twig >= 3.9

Release Plan

Release Supported Pimcore Versions Supported Symfony Versions Release Date Maintained Branch
3.x 11.0 ^6.2 30.08.2023 Feature Branch master
2.x 10.1 - 10.6 ^5.4 21.09.2021 No 2.x
1.x 6.0 - 6.9 3.4, ^4.4 06.12.2017 No 1.x

Installation

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

Add Bundle to bundles.php:, (*2)

return [
    EmailizrBundle\EmailizrBundle::class => ['all' => true],
];
  • Create valid email markup with inky and inline styles.
  • Respect editables in pimcore edit mode.

Usage

Just extend the emailizr layout:, (*3)

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

This will include a markup like this. You may want to change it:, (*4)

{% apply spaceless %}
{{ emailizr_style_collector.add('@EmailizrBundle/public/css/foundation-for-emails/foundation.min.css') }}
{% emailizr_inline_style %}
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="viewport" content="width=device-width"/>
    {% block headStyles %}
        <style type="text/css">
            {% autoescape false %}
                {{ emailizr_inline_style(emailizr_style_collector) }}
            {% endautoescape %}
        </style>
    {% endblock %}
</head>
{% apply inky_to_html %}
    <body>
        {% block body %}
            <table class="body">
                <tr>
                    <td class="center" align="center" valign="top">
                        <center>
                            {% block content %}
                            {% endblock %}
                        </center>
                    </td>
                </tr>
            </table>
            <!-- prevent Gmail on iOS font size manipulation -->
            <div style="display:none; white-space:nowrap; font:15px courier; line-height:0;"> &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; </div>
        {% endblock %}
        </body>
{% endapply %}
</html>
{% end_emailizr_inline_style %}
{% endapply %}

Service

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

<?php

use EmailizrBundle\Service\ContentService;

class YourClass
{
    protected ContentService $contentService;

    public function __construct(ContentService $contentService)
    {
        $this->contentService = $contentService;
    }

    public function parse($content)
    {
        $cssFile = PIMCORE_WEB_ROOT . '/static/css/email.css';

        return $this->contentService->checkContent($content, $cssFile, FALSE, TRUE, TRUE);
    }
}

Further Information

Upgrade Info

Before updating, please check our upgrade notes!, (*6)

License

DACHCOM.DIGITAL AG, Löwenhofstrasse 15, 9424 Rheineck, Schweiz
dachcom.com, dcdi@dachcom.ch
Copyright © 2024 DACHCOM.DIGITAL. All rights reserved., (*7)

For licensing details please visit LICENSE.md, (*8)

The Versions

24/07 2018

dev-master

9999999-dev https://github.com/dachcom-digital/pimcore-emailizr

Pimcore 5.x Emailizr - create HTML E-Mails the right way!

  Sources   Download

GPL-3.0+ GPL-3.0-or-later

The Requires

 

email pimcore inky inline style

23/07 2018

dev-inky_replace

dev-inky_replace https://github.com/dachcom-digital/pimcore-emailizr

Pimcore 5.x Emailizr - create HTML E-Mails the right way!

  Sources   Download

GPL-3.0-or-later

The Requires

 

email pimcore inky inline style

02/02 2018

v1.0.4

1.0.4.0 https://github.com/dachcom-digital/pimcore-emailizr

Pimcore 5.x Emailizr - create HTML E-Mails the right way!

  Sources   Download

GPL-3.0-or-later

The Requires

 

email pimcore inky inline style

10/01 2018

v1.0.3

1.0.3.0 https://github.com/dachcom-digital/pimcore-emailizr

Pimcore 5.x Emailizr - create HTML E-Mails the right way!

  Sources   Download

GPL-3.0+

The Requires

 

email pimcore inky inline style

06/12 2017

v1.0.2

1.0.2.0 https://github.com/dachcom-digital/pimcore-emailizr

Pimcore 5.x Emailizr - create HTML E-Mails the right way!

  Sources   Download

GPL-3.0+

The Requires

 

email pimcore inky inline style

16/11 2017

v1.0.1

1.0.1.0 https://github.com/dachcom-digital/pimcore-emailizr

Pimcore 5.x Emailizr - create HTML E-Mails the right way!

  Sources   Download

GPL-3.0+

The Requires

 

email pimcore inky inline style

02/10 2017

v1.0.0

1.0.0.0 https://github.com/dachcom-digital/pimcore-emailizr

Pimcore 5.x Emailizr - create HTML E-Mails the right way!

  Sources   Download

GPL-3.0+

The Requires

 

email pimcore inky inline style