Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/footageone/mjml-email-server

Service to generate HTML emails from mjml templates
https://github.com/footageone/mjml-email-server

Last synced: about 2 months ago
JSON representation

Service to generate HTML emails from mjml templates

Awesome Lists containing this project

README

        

# footage.one Mail generator

Micro-Service for creating HTML mails from MJML templates.

The templates need to be provides (probably through a docker mount) to a folder called templates

The server can be queried with POST on a path with the template name. So for example share.mjml can be targeted under /share.
The body of the request should contain the data that should be inserted into the template.

## Local

Create a symlink templates `ln -s ../your-templates ./templates`

Start with `npm run start`

## Change output

There are two possible output formats. If the request is done with `Accept: text/html` header the service will return the html.
If the request is done with `Accept: application/json` header the response will be the MJML object.