https://github.com/resend/resend-sinatra-example
This example shows how to use Resend with Sinatra
https://github.com/resend/resend-sinatra-example
Last synced: 17 days ago
JSON representation
This example shows how to use Resend with Sinatra
- Host: GitHub
- URL: https://github.com/resend/resend-sinatra-example
- Owner: resend
- License: mit
- Created: 2023-06-05T18:49:35.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2026-05-23T14:06:48.000Z (26 days ago)
- Last Synced: 2026-05-23T16:09:45.753Z (25 days ago)
- Language: Ruby
- Homepage:
- Size: 14.6 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
> [!IMPORTANT]
> This repository has been consolidated into the new [resend-examples](https://github.com/resend/resend-examples) monorepo, which contains updated examples for all languages and frameworks.
>
> **[View the Sinatra examples here](https://github.com/resend/resend-examples/tree/main/ruby-resend-examples/sinatra_app)**
---
# Resend with Sinatra
This example shows how to use Resend with [Sinatra](https://sinatrarb.com).
## Prerequisites
To get the most out of this guide, you’ll need to:
* [Create an API key](https://resend.com/api-keys)
* [Verify your domain](https://resend.com/domains)
## Installation
Get the [Resend Ruby SDK](https://github.com/resendlabs/resend-ruby).
```sh
# Via RubyGems
gem install resend
# Via Gemfile
gem 'resend'
```
## Instructions
1. Set your `RESEND_API_KEY` environment variable by running:
```sh
export RESEND_API_KEY="re_123456789"
```
2. Install dependencies:
```sh
bundle install
```
3. Execute the following command:
```sh
ruby index.rb
```
Or if you installed via Gemfile with `bundle install` run the following command:
```sh
bundle exec ruby index.rb
```
## License
MIT License