1
2// Send an email with the Postmark.js library
3// Learn more -> https://postmarkapp.com/developer/integration/official-libraries#node-js
4
5// Install with npm
6npm install postmark --save
7
8// Require
9var postmark = require("postmark");
10
11// Example request
12var client = new postmark.Client("server token");
13
14client.sendEmail({
15 "From": "sender@example.com",
16 "To": "receiver@example.com",
17 "Subject": "Test",
18 "TextBody": "Hello from Postmark!"
19});
20
21