Ruby examples for integrating Keplars email service.
gem install keplarsrequire 'keplars'
client = Keplars::Client.new(api_key: 'kms_your_api_key')
result = client.emails.send_instant(
to: 'user@example.com',
from: 'hello@yourdomain.com',
subject: 'Hello!',
html: '<h1>Hello World</h1>'
)Full Sinatra demo using the official Ruby SDK. Covers transactional emails, bulk/scheduled marketing emails, webhook signature verification, and priority queue usage.
Minimal script sending a single email via raw HTTP using Ruby's standard net/http library — no SDK required.
Minimal script sending a single email via SMTP using Ruby's standard net/smtp library — no SDK required.
cd sdk-example
cp .env.example .env
bundle install
ruby app.rbServer starts on http://localhost:8080.
- Ruby 3.0+
- A Keplars API key (get one here)
- Go Examples — Gin
- Dart Examples — Shelf
- Python Examples — FastAPI
- Node.js Examples — Express
MIT