sendim-brevo
v1.2.289
Published
[![Test Coverage](https://api.codeclimate.com/v1/badges/1cba2b8c3c1a4b96782c/test_coverage)](https://codeclimate.com/github/qlaffont/sendim-brevo/test_coverage) [![Maintainability](https://api.codeclimate.com/v1/badges/1cba2b8c3c1a4b96782c/maintainability
Downloads
2,466
Readme
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: '[email protected]',
},
],
sender: {
email: '[email protected]',
},
});
Tests
To execute jest tests (all errors, type integrity test)
pnpm test
Maintain
This package use TSdx. Please check documentation to update this package.