Important
This repository has been consolidated into the new resend-examples monorepo, which contains updated examples for all languages and frameworks.
This example shows how to use Resend with Bun.
To get the most out of this guide, you’ll need to:
-
Run
cp .env.template .envand replace the API key value. -
Install dependencies:
bun install- Start the server:
bun index.tsxNavigate to http://localhost:3000 to send an email with the test parameters.
- Update the
fromandtoin 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.
MIT License