[reloop-email]
Ruby
Ship email from Rails, Sinatra, or any Ruby app with a gem that follows familiar conventions.
1
Install the Ruby package
bash
gem install reloop-email2
Send email from Ruby
send_email.rb
1require 'reloop'2
3Reloop.api_key = ENV['RELOOP_API_KEY']4
5params = {6 from: 'Acme <onboarding@yourdomain.com>',7 to: ['delivered@yourdomain.com'],8 subject: 'Hello from Ruby',9 html: '<strong>It works!</strong>'10}11
12email = Reloop::Emails.send(params)13puts "Email sent: #{email[:id]}"3
GitHub, examples, and API reference
4
Need more help?
- Need help? Contact Support.
- Chat with Reloop developers on Discord.
- Check out our changelog.
- Questions? Contact Sales.
- LLM? Read llms.txt.
Ruby frameworks
Send with Ruby.
Get an API key and ship transactional email from Ruby using the official SDK.