The Official MailPace Blog

Send transactional emails with Node.js over MailPace

February 04, 2021

Weโ€™re pleased to announce the availability of our open source Node.js package for sending emails over MailPace.

This is probably the easiest way to send transactional emails from Node.js!

The npm package allows you to send emails in a couple of lines of code, itโ€™s a simple as creating a client with your API token, and calling sendEmail with your email contents (see here for a full list of email properties:

const MailPace = require('@mailpace/mailpace.js');
const client = new MailPace.DomainClient('API_TOKEN_HERE');

    from: '',
    to: '',
    subject: 'test',
    htmlbody: '<H1>HTML Email</h1>',

The package is available on npm here:

Source code here:

And finally the docs:

If you donโ€™t have an OMS account, get one set up today:

Happy sending! Paul.

Written by Paul, founder of MailPace
Follow my journey on Twitter