Comment

Nlls

Hey Peter,
premailer.io seems to be broken at the moment. Always gives a server error back, regardless of how big or small of a Html I put in the text-area.
Did you turn off support?

Best,
Nils

Replies

Peter Bengtsson

Thanks for letting me know. I'll take a look.

Peter Bengtsson

Seems to work now.

Alex Z

Yesterday (19 February 2026, AEDT time zone), Premailer.io stopped working, but later it came back. I know I can find this info online, but I thought I'd ask anyway - is there a way I can run the Premailer capability locally on my own computer? So I don't have to worry about Premailer.io going down? This must be costing you resources somewhere, I don't mind a local solution if one is available. I've searched and of course I find the GitHub versions. How can I run a local Premailer instance? Yours is the only Premailer site I can find online, and I rely on it! :-)

Peter Bengtsson

Hi Alex,
Yeah, premailer.io hasn't gotten any attention in years. I'm tempted to turn it off too because it's a liability.

But it shouldn't be too hard to set up locally.
After all, `premailer.io` is just a web server that executes the standalone python library `premailer`.
See https://github.com/peterbe?tab=repositories&q=premailer&type=&language=&sort=
The website is a combination of Python Falcon and a static javascript app.
The server code is all in one file: https://github.com/peterbe/premailer.io/blob/master/app.py
All it does is this:

```
import premailer

...


        try:
            p = premailer.Premailer(html, **options)
        except TypeError as exp:
            raise falcon.HTTPBadRequest("Invalid options to premailer", str(exp))
```

Unfortunately, the standalone Python library (https://github.com/peterbe/premailer) hasn't had an update in years. I think it works on modern versions of Python. But it's not maintained. But contributions are welcome!