
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
node-templater-mailer-microservice
Advanced tools
A microservice for sending template based emails via an SMTP server written in JavaScript
A microservice for sending template based emails via an SMTP server written in JavaScript
npm install
Copy config.json
to config.local.json
and adapt to your needs
node main.js | ./node_modules/bunyan/bin/bunyan
Create the template foo
:
curl -v -X PUT http://127.0.0.1:3000/templates/foo \
-H 'Content-Type: application/vnd.node-templater-mailer-microservice.v1+json; charset=utf-8' \
--data '{"subject":"Mail for <%= name %>","html":"Hello <%= name %>"}'
Create the SMTP transport bar
:
curl -v -X PUT http://127.0.0.1:3000/smtp_credentials/bar \
-H 'Content-Type: application/vnd.node-templater-mailer-microservice.v1+json; charset=utf-8' \
--data '{"dsn":"smtp://john:doe@example.com:25","email":"info@example.com","name":"Example Inc."}'
Send an email using the transport bar
and the template foo
:
curl -v -X POST http://127.0.0.1:3000/send/bar/foo \
-H 'Content-Type: application/vnd.node-templater-mailer-microservice.v1+json; charset=utf-8' \
--data '{"to":"john.doe@example.com","name":"John Doe"}'
The subject
and the html
part of the template will be parsed through lodash's template function
with the data provided in the body
of this request.
FAQs
A microservice for sending template based emails via an SMTP server written in JavaScript
The npm package node-templater-mailer-microservice receives a total of 1 weekly downloads. As such, node-templater-mailer-microservice popularity was classified as not popular.
We found that node-templater-mailer-microservice demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 5 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.