/resend-sinatra-example

This example shows how to use Resend with Sinatra

Primary LanguageRubyMIT LicenseMIT

Resend with Sinatra

This example shows how to use Resend with Sinatra.

Prerequisites

To get the most out of this guide, you’ll need to:

Installation

Get the Resend Ruby SDK.

# Via RubyGems
gem install resend

# Via Gemfile
gem 'resend'

Instructions

  1. Set your RESEND_API_KEY environment variable by running:
export RESEND_API_KEY="re_123456789"
  1. Install dependencies:
bundle install
  1. 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

License

MIT License