Install the package

npm i youremailapi

Start using it

How to send an email:

const { sendEmail } = require("youremailapi"); // you can use import instead

await sendEmail("<YOUR_API_KEY>", {
  to: "contact@youremailapi.com",
  template: "<YOUR_TEMPLATE>",
  smtp_account: "<YOUR_SMTP_ACCOUNT>",
  subject: "Some subject",
  variables: {
    "%example%": "Some text here",
  },
});