Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/footageone/mjml-email-server
- Owner: footageone
- License: mit
- Created: 2020-10-10T17:44:01.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-12-15T14:24:58.000Z (about 1 year ago)
- Last Synced: 2023-12-15T15:35:14.866Z (about 1 year ago)
- Size: 62.5 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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.