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

sendim

Package Overview
Dependencies
Maintainers
1
Versions
243
Alerts
File Explorer

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/flexper/sendim/test_coverage) [![Maintainability](https://api.codeclimate.com/v1/badges/0505e350e23c43359432/maintainability)](http

  • 1.2.45
  • Source
  • npm
  • Socket score

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

Test Coverage Maintainability npm npm Snyk Vulnerabilities for npm package NPM

Sendim

A simple library to send email cross providers.

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 28 Jul 2023

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc