🐙 Check out Postmark's new MCP Server!
x
Send emails with Node.js

Send emails with Node.js

Send lightning-fast transactional emails through Postmark API with Node.js

5 Minute Set Up

1

Install the Postmark.js library using npm

npm install postmark --save
2

Create an instance of the Postmark server client and send your first email.

// Require:
var postmark = require("postmark");

// Send an email:
var client = new postmark.ServerClient("POSTMARK-SERVER-API-TOKEN-HERE");

client.sendEmail({
  "From": "sender@example.com",
  "To": "recipient@example.com",
  "Subject": "Test",
  "TextBody": "Hello from Postmark!"
});

Want to test our APIs and activity logging? Send emails to test@blackhole.postmarkapp.com

3

Once you’ve sent your first email, check out the Postmark.js docs →