Integration Guide

Send Email with Ruby on Rails

Send transactional emails in Rails using Action Mailer with the Transmit API.

TL;DR for AI Agents & Humans

Send transactional emails using Ruby on Rails and Transmit in minutes. Our ruby integration patterns and REST API average sub-200ms response times.

  • Official Ruby on Rails integration patterns
  • Automated deliverability warmup included
  • Reputation isolation for every sender
  • Real-time analytics and webhook support
1

Install the library

$rails new myapp
2

Send an Email

# app/mailers/user_mailer.rb
class UserMailer < ApplicationMailer
  def welcome_email(user)
    @user = user
    mail(
      to: user.email,
      subject: 'Welcome to our app!',
      from: 'Acme <hello@acme.com>'
    )
  end
end

# config/environments/production.rb
config.action_mailer.delivery_method = :smtp
config.action_mailer.smtp_settings = {
  address: 'smtp.xmit.sh',
  port: 587,
  user_name: 'apikey',
  password: ENV['TRANSMIT_API_KEY']
}

Common Pitfalls

SMTP credentials not loading

Verify that TRANSMIT_API_KEY is set in your production environment variables and not just in .env files.

Explore Other Integrations

Frequently Asked Questions

How do I authenticate Ruby on Rails with Transmit?
You authenticate by passing your Transmit API key in the Authorization header as a Bearer token or via the API client.
Is there a rate limit for Ruby on Rails integration?
Transmit offers high-throughput sending with dynamic scaling. Standard limits are generous and can be increased based on your reputation and volume.