This example shows how to use Resend with Sinatra.
To get the most out of this guide, you’ll need to:
Get the Resend Ruby SDK.
# Via RubyGems
gem install resend
# Via Gemfile
gem 'resend'
- Set your
RESEND_API_KEY
environment variable by running:
export RESEND_API_KEY="re_123456789"
- Install dependencies:
bundle install
- Execute the following command:
ruby index.rb
Or if you installed via Gemfile with bundle install
run the following command:
bundle exec ruby index.rb
MIT License