semvec/pypi-packages huggingface dataset:
x-net-email-css-inliner 1.0.2
An Email CSS Inliner to inline a external CSS to HTML
License: MIT
Requires Python: >=3.6

# X-Net Email CSS Inliner

The *X-Net Email CSS Inliner* is a HTML email inliner inspired by the
[ZURB CSS inliner](https://get.foundation/emails/inliner.html).

Inlining is the process of prepping an HTML email for delivery to email clients
Some email clients strip out your email's styles unless they are written inline
with style tags. Here's what the inliner does:

* *Inlining CSS:* All of your CSS is embedded directly into the HTML as style attributes on each tag.
* CSS inside a *@media* block can't be inlined, so it's put in a `<style>` tag.

You can use our great [X-Net Django Email Template](https://github.com/x-net-services/x-net-django-email-template)
with the *X-Net Email CSS Inliner*

## Installation

```
pip install x_net_email_css_inliner
```

## Example

```
from x_net_email_css_inliner import EmailCSSInliner

raw_html = "<html>...</html>"  # HTML email template
html_with_inline_css = str(EmailCSSInliner(raw_html))
```
x-net-django-email-template 1.0.3
An Email HTML template for Django
License: MIT
Requires Python: >=3.6

# X-Net Django Email Template

This is the default email template that we use in our [company](https://www.x-net.at) for sending emails with django (registration, password forgot, eg.)

## Installation

1. pip install `x_net_django_email_template`
2. Add `x_net_django_email_template` to INSTALLED_APPS

## Usage

When extends the default.html you can overwrite the blocks:

```html
{% extends "email/default.html" %}

{% load html_email i18n %}

{% block title %}Title{% endblock %}
{% block header_title %}Header title{% endblock %}

{% block main %}
  <p>This is an example of text.</p>

  <table role="presentation">
      <tr>
      <td class="button-wrapper">
        <table class="button" role="presentation">
          <tr>
            <td>
              <a href="#">Click me</a>
            </td>
          </tr>
        </table>
      </td>
    </tr>
  </table>
{% endblock %}

{% block footer %}
  <p><small>{% trans "This is an automatically generated email, please do not reply to this message." %}</small></p>
{% endblock %}
````

### Templatetags

With the `full_static` template tag you can insert absolute urls in the email template.

```html
{% load html_email %}
<link rel="stylesheet" href="{% full_static "css/email/html-email.min.css" %}" />
```

## Compatibility

You can inline css to this HTML template with the [X-Net Email Inliner](https://github.com/x-net-services/x-net-email-css-inliner).
We have test this HTML template with the following email client:

* Apple Mail 13
* Outlook 2007
* Outlook 2010
* Outlook 2013
* Outlook 2013 with 120 DPI
* Outlook 2016 (macOS)
* Outlook 2016
* Outlook 2016 with 120 DPI
* Outlook 2019
* Outlook 2019 with 120 DPI
* Outlook Office 365
* Thunderbird
* Gmail App
* Samsung Mail
* Mail/iOS
* Outlook Android
* Outlook iOS
* Office 365 (Browser)
* Gmail (Browser)
* GMX.de (Browser)