This is the official Node.js library for the https://mailpace.com transactional email API
First you will need to retrieve your API token for your sending domain from MailPace. You can find it under Organization -> Domain -> API Tokens
Your domain must have completed DKIM authorization and have an active plan to send emails.
If using NPM
npm install --save @mailpace/mailpace.js
If using Yarn
yarn add @mailpace/mailpace.js
const MailPace = require('@mailpace/mailpace.js');
const client = new MailPace.DomainClient('API_TOKEN_HERE');
client
  .sendEmail({
    from: 'test@test.com',
    to: 'test@test.com',
    subject: 'test',
    htmlbody: '<H1>HTML Email</h1>',
  })
  .then((r) => {
    console.log(r);
  });See the ./docs folder for documentation and options
To regenerate the documentation, run yarn docs:md
If you have any difficulties please contact support@mailpace.com or open an issue on github.
Contributions are always welcome
MIT