MVFM

resend/send_batch

Send a batch of emails in a single API call

const app = mvfm(prelude, console_, resend_);
const prog = app({}, ($) => {
  const batch = $.resend.batch.send([
    { from: "onboarding@resend.dev", to: "user1@example.com", subject: "Hi 1", html: "<p>Email 1</p>" },
    { from: "onboarding@resend.dev", to: "user2@example.com", subject: "Hi 2", html: "<p>Email 2</p>" },
  ]);
  return $.console.log(batch);
});
await fold(defaults(app, { resend: crystalBallResendInterpreter }), prog);
Ctrl+Enter