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 .env
and replace the API key value. -
Install dependencies:
bun install
- Start the server:
bun index.tsx
Navigate to http://localhost:3000 to send an email with the test parameters.
- Update the
from
andto
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.
MIT License