Official Node.js SDK for the [Lettr](https://lettr.com) transactional email API.
npm install lettrOfficial Node.js SDK for the Lettr transactional email API.
``bash`
bun install lettr
`typescript
import { Lettr } from "lettr";
const client = new Lettr("your-api-key");
const { data, error } = await client.emails.send({
from: "sender@example.com",
to: ["recipient@example.com"],
subject: "Welcome!",
html: "
Hello!
",if (error) {
console.error(error.message);
} else {
console.log(data.request_id);
}
``
MIT