Skip to content
MailerOwl
Menu

Send email from Ruby on Rails in minutes

A plain HTTP call is all it takes. No SDK required: send transactional email from Ruby on Rails with the MailerOwl API.

No SDK to install

Use the HTTP client you already have in Ruby on Rails. The API is a single JSON endpoint.

Test mode keys

Develop against mo_test_ keys: the full pipeline, no real email.

Events and webhooks

Track delivery, bounces and complaints from your Ruby on Rails app with signed webhooks.

ruby
require "net/http"
uri = URI("https://api.mailerowl.com/v1/emails")
req = Net::HTTP::Post.new(uri, "Authorization" => "Bearer #{ENV['MAILEROWL_KEY']}", "Content-Type" => "application/json")
req.body = { from: "Acme <hello@acme.com>", to: ["jane@example.com"], subject: "Welcome", html: "<p>Hi!</p>" }.to_json
puts Net::HTTP.start(uri.host, uri.port, use_ssl: true) { |h| h.request(req) }.body

Questions

Is there an official Ruby on Rails SDK?

Not yet. The API is intentionally simple: one POST with a JSON body.

Can I use SMTP from Ruby on Rails instead?

Yes. Use smtp.mailerowl.com on port 587 with your API key as the password.