A
A
Arthur Koch2015-09-08 19:14:02
Python
Arthur Koch, 2015-09-08 19:14:02

Server style auto-inliner for email newsletters. Who used?

Gentlemen, has anyone used server libraries for auto-inline code of letters? I found, for example, one on python https://github.com/peterbe/premailer/tree/master
For gulp, there is such a thing https://www.npmjs.com/package/gulp-inline-css , but you need a server-side solution for autoinline of email templates before sending. I would like to hear examples of those who really used it.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Arthur Koch, 2015-09-15
@dudeonthehorse

It was decided to use https://www.npmjs.com/package/gulp-inline-css on the node
Will be used in my email layout framework https://github.com/dudeonthehorse/Email

S
Shmele, 2015-09-18
@shmele

  • pynliner ( https://pypi.python.org/pypi/pynliner)
    We've been using pynliner for a long time in production, for inlining styles in emails and for some ajax-served content.
    A good working option, but not without flaws. Once I ran into a bug when pynliner lost one of its properties during inlining. This, coupled with the dependence on the old BeautifulSoup, was the last straw and tried to switch to premailer.
  • premailer https://pypi.python.org/pypi/premailer
    The thing is good, there are convenient features, such as applying pieces of css to the document, without the need to insert <style>tags into the document. A killer feature, in the form of the ability to receive a list of errors and warnings when parsing css (to then automatically send it to layout designers :)). But we didn't get used to it. Did not overcome some problems. But the tool, in my opinion, is more promising than pynliner, so, if possible, I will repeat the transition attempt and update the comment.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question