Skip to content

qlaffont/sendim-brevo

Repository files navigation

Test Coverage Maintainability npm npm Snyk Vulnerabilities for npm package NPM

sendim-brevo

A simple library to send email with Sendim for Brevo. Old Owner: @flexper

Usage

import { Sendim } from 'sendim';
import { SendimBrevoProviderConfig, SendimBrevoProvider } from 'sendim-brevo';

const sendim = new Sendim();

await sendim.addTransport<SendimBrevoProviderConfig>(
  SendimBrevoProvider,
  { apiKey: process.env.BREVO_APIKEY! },
);

await sendim.sendTransactionalMail({
  templateId: '6',
  to: [
    {
      email: 'test@test.fr',
    },
  ],
  sender: {
    email: 'test@test.fr',
  },
});

Tests

To execute jest tests (all errors, type integrity test)

pnpm test

Maintain

This package use TSdx. Please check documentation to update this package.

About

A simple library to send email with Sendim for Brevo (ex: Sendinblue).

Resources

License

Stars

Watchers

Forks

Packages

No packages published