useSend SDK
Prerequisites
Installation
NPM
npm install usesend
Yarn
yarn add usesend
PNPM
pnpm add usesend
Bun
bun add usesend
Usage
import { UseSend } from 'usesend';
const usesend = new UseSend('us_12345');
// for self-hosted installations you can pass your base URL
// const usesend = new UseSend("us_12345", "https://app.usesend.com");
usesend.emails.send({
to: 'hello@acme.com',
from: 'hello@company.com',
subject: 'useSend email',
html: '<p>useSend is the best open source product to send emails</p>',
text: 'useSend is the best open source product to send emails',
});