sendim-mandrill
TypeScript icon, indicating that this package has built-in type declarations

1.0.106 • Public • Published

Test Coverage Maintainability npm npm Snyk Vulnerabilities for npm package NPM

sendim-mandrill

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

Usage

import { Sendim } from 'sendim';
import { SendimMandrillProviderConfig, SendimMandrillProvider } from 'sendim-mandrill';

const sendim = new Sendim();

await sendim.addTransport<SendimMandrillProviderConfig>(
  SendimMandrillProvider,
  { apiKey: process.env.MANDRILL_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.

/sendim-mandrill/

    Package Sidebar

    Install

    npm i sendim-mandrill

    Weekly Downloads

    330

    Version

    1.0.106

    License

    MIT

    Unpacked Size

    83.2 kB

    Total Files

    13

    Last publish

    Collaborators

    • qlaffont