Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More

sendim

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sendim

[![Test Coverage](https://api.codeclimate.com/v1/badges/0505e350e23c43359432/test_coverage)](https://codeclimate.com/github/qlaffont/sendim/test_coverage) [![Maintainability](https://api.codeclimate.com/v1/badges/0505e350e23c43359432/maintainability)](htt


Version published
Weekly downloads
345
decreased by-52.54%
Maintainers
0
Weekly downloads
 
Created

Test Coverage Maintainability npm npm Snyk Vulnerabilities for npm package NPM

Sendim

A simple library to send email cross providers. Old Owner: @flexper

Usage

import { Sendim } from 'sendim';

const sendim = new Sendim();

await sendim.addTransport<SendimSampleProviderConfig>(SendimSampleProvider, {});

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

addTransport(sendimProvider, config?)

Add transport to sendim

Params

Field NameTypeDefaultDescription
sendimProviderClass implements SendimTransportInterfacerequiredProvider to use
configobject{}Config for provider

sendRawEmail(options)

Send raw email

Params

Field NameTypeDefaultDescription
optionsRawMailOptionsrequiredoptions to send email

sendTransactionalEmail(options)

Send transactional email

Params

Field NameTypeDefaultDescription
optionsTransactionalMailOptionsrequiredoptions to send email

Tests

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

pnpm test

Maintain

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

FAQs

Package last updated on 15 Jul 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts