Email infrastructure for
Rails developers
Drop-in SMTP replacement for Action Mailer, or use the REST API directly. Ship email in minutes, not hours.
Code examples
Three ways to send email from Rails with GetMailer.
SMTP config (drop-in replacement)
Add GetMailer SMTP credentials to your environment config. Every existing Action Mailer email works immediately.
# config/environments/production.rb
config.action_mailer.smtp_settings = {
address: "smtp.getmailer.co",
port: 587,
user_name: "apikey",
password: ENV["GETMAILER_API_KEY"],
authentication: :plain,
enable_starttls_auto: true
}Using the getmailer-ruby gem
Install the gem and send emails with the REST API for more control over templates, tracking, and scheduling.
gem "getmailer-ruby"require "getmailer"
client = GetMailer::Client.new(api_key: ENV["GETMAILER_API_KEY"])
client.emails.send(
from: "[email protected]",
to: "[email protected]",
subject: "Welcome aboard!",
template: "welcome",
variables: { name: "Jane" }
)Action Mailer with GetMailer
Keep using Action Mailer's familiar class-based pattern. GetMailer handles delivery behind the scenes.
class UserMailer < ApplicationMailer
default from: "[email protected]"
def welcome_email
@user = params[:user]
mail(
to: @user.email,
subject: "Welcome to YourApp, #{@user.name}!"
)
end
end
# Deliver it
UserMailer.with(user: @user).welcome_email.deliver_laterBuilt for the Rails ecosystem
Everything a Rails developer needs to ship production email.
Drop-in SMTP
Change one config block and your existing Action Mailer emails go through GetMailer.
Ruby gem
Official getmailer-ruby gem with a clean, idiomatic Ruby API for sending emails.
Action Mailer compatible
Works with every Action Mailer feature: attachments, multipart, inline images.
Webhook verification helper
Built-in signature verification to securely process delivery webhooks.
Template sync
Sync email templates from your Rails app to GetMailer with a single Rake task.
Heroku & Railway ready
Set one environment variable and deploy. No infrastructure to manage.
Ready to get started?
Start sending emails from Rails in under 5 minutes.