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_KEYenvironment variable by running:
export RESEND_API_KEY="re_123456789"- Install dependencies:
bundle install- Execute the following command:
ruby index.rbOr if you installed via Gemfile with bundle install run the following command:
bundle exec ruby index.rbMIT License