Skip to content

resend/resend-bun-example

Repository files navigation

Important

This repository has been consolidated into the new resend-examples monorepo, which contains updated examples for all languages and frameworks.

View the Bun examples here


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

14 stars

Watchers

0 watching

Forks

Contributors