📅  最后修改于: 2022-03-11 15:03:26.099000             🧑  作者: Mango
// Install and Require postmark library => npm install postmark:
var postmark = require("postmark");
// Send an email:
var client = new postmark.Client("POSTMARK-SERVER-API-TOKEN-HERE");
client.sendEmail({
"From": "sender@example.com",
"To": "recipient@example.com",
"Subject": "Test",
"TextBody": "Hello from Postmark!"
});