quieter
v0.0.2
Published
TypeScript SDK for the Quieter send API.
Readme
quieter
TypeScript SDK for the Quieter send API.
import { Quieter } from "quieter";
const quieter = new Quieter({
apiKey: process.env.QUIETER_API_KEY!,
});
await quieter.send({
from: "Demo <[email protected]>",
to: ["[email protected]"],
subject: "Hello World",
text: "It works!",
html: "<strong>It works!</strong>",
});React Email
Pass a React Email component directly to send. Quieter renders it before calling the API.
await quieter.send({
from: "Demo <[email protected]>",
to: ["[email protected]"],
subject: "Welcome",
text: "Welcome, Ada.",
react: <WelcomeEmail name="Ada" />,
});