Skip to content

Resend

Use Resend to send emails.

Install

Install dependencies

cmd
bun add resend

Example

Send an email with a list of TODOs.

src/skills/todo.ts
if (!process.env.RESEND_API_KEY) {
  console.warn("RESEND_API_KEY is not set");
}
const resend = new Resend(process.env.RESEND_API_KEY); // Replace with your Resend API key
 
// Replace with your email
let content = {
  from: "your@email.com",
  to: email,
  subject: "Your summary from Converse",
  html: `
        <h3>Your summary</h3>
        <p>${previousMsg.replace(/\n/g, "<br>")}</p>
      `,
};
await resend.emails.send(content);