Files
GibSend/packages/sdk
2025-05-17 14:13:32 +10:00
..
2025-04-19 21:45:17 +10:00
2025-04-19 21:45:17 +10:00
2024-05-23 22:02:33 +10:00
2024-05-25 08:40:35 +10:00
2024-05-25 18:46:41 +10:00
2024-05-25 08:45:57 +10:00
2025-05-02 20:49:37 +10:00
2024-05-23 22:02:33 +10:00

Unsend SDK

Prerequisites

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",
});