Skip to content

resend/resend-bun-example

Repository files navigation

Resend with Bun

This example shows how to use Resend with Bun.

Prerequisites

To get the most out of this guide, you’ll need to:

Instructions

  1. Run cp .env.template .env and replace the API key value.

  2. Install dependencies:

bun install
  1. Start the server:
bun index.tsx

Navigate to http://localhost:3000 to send an email with the test parameters.

  1. Update the from and to in the index.tsx file

You can update the from and to so you send from your own domain and to your email address. To send emails to anyone, the from address must be a verified domain in your account, otherwise you can only send emails to yourself.

License

MIT License

About

This example shows how to use Resend with Bun

Resources

License

Stars

Watchers

Forks