Skip to content
All integrations

Send email from Node.js with Lettr

Lettr works with Node.js and TypeScript through the lettr package on npm.

Checked

What you can do

  • Send HTML, plain text and template email
  • Manage templates, domains and webhooks
  • Manage your audience and campaigns

How to set it up

npm install lettr

Every method returns data and error instead of throwing.

import { Lettr } from "lettr";

const client = new Lettr(process.env.LETTR_API_KEY!);

const { data, error } = await client.emails.send({
  from: "you@yourdomain.com",
  to: ["recipient@example.com"],
  subject: "Hello",
  html: "<p>Hi there</p>",
});

Requirements

  • Node.js 18 or later
All integrations