You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

unsend

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

unsend

## Prerequisites

1.5.1
latest
npmnpm
Version published
Maintainers
1
Created
Source

Unsend SDK

Prerequisites

  • Unsend API key
  • Verified domain

Installation

NPM

npm install unsend

Yarn

yarn add unsend

PNPM

pnpm add unsend

Bun

bun add unsend

Usage

import { Unsend } from "unsend";

const unsend = new Unsend("us_12345");

// for self-hosted installations you can pass your base URL
// const unsend = new Unsend("us_12345", "https://my-unsend-instance.com");

unsend.emails.send({
  to: "hello@acme.com",
  from: "hello@company.com",
  subject: "Unsend email",
  html: "<p>Unsend is the best open source product to send emails</p>",
  text: "Unsend is the best open source product to send emails",
});

FAQs

Package last updated on 25 May 2025

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