1// Install and Require postmark library => npm install postmark:
2var postmark = require("postmark");
3
4// Send an email:
5var client = new postmark.Client("POSTMARK-SERVER-API-TOKEN-HERE");
6
7client.sendEmail({
8 "From": "sender@example.com",
9 "To": "recipient@example.com",
10 "Subject": "Test",
11 "TextBody": "Hello from Postmark!"
12});