Prompt

What's a simple way to send transactional emails from a Ruby on Rails application without adopting a full ESP?

Technology / Developer tools4 observationsLast seen Nov 8, 2026

Latest observation

Nov 8, 2026Claude

The simplest approach is Action Mailer plus a plain SMTP relay.Comparing SMTP relay options for low-volume sendingComparing SMTP relay options for low-volume sendingThe simplest approach is Action Mailer plus a plain SMTP relay. Rails already ships with everything you need, so there’s no extra gem or ESP SDK required.

  1. Generate a mailer bashbin/rails generate mailer UserMailer welcome ruby# app/mailers/user_mailer.rb class UserMailer < ApplicationMailer def welcome(user) @user = user mail(to: @user.email, subject: "Welcome!") end end Then write the templates in app/views/user_mailer/welcome.html.erb (and a .text.erb version).
  2. Point it at an SMTP server ruby# config/environments/production.rb config.action_mailer.delivery_method = :smtp config.action_mailer.smtp_settings = { address: ENV["SMTP_HOST"], port: 587, user_name: Rails.application.credentials.dig(:smtp, :username), password: Rails.application.credentials.dig(:smtp, :password), authentication: :plain, enable_starttls_auto: true } config.action_mailer.default_url_options = { host: "yourapp.com" }
  3. Send it in the background rubyUserMailer.welcome(user).deliver_later deliver_later uses Active Job, so a slow SMTP server won’t block web requests, and failed deliveries can retry. Where to get the SMTP server

Amazon SES (SMTP interface): very cheap, and you just use it as a relay with no marketing or template features. Needs a bit of setup, including leaving the sandbox. Your hosting or domain provider’s SMTP (Fastmail, Google Workspace, Zoho, etc.): fine for low volume, but watch the daily sending limits. Self-hosted Postfix: doable, but you take on IP reputation and maintenance. I’d avoid it unless you have a reason.

Don’t skip deliverability Whatever relay you pick, set up these DNS records for your sending domain, or your mail will land in spam:

SPF and DKIM (your relay will give you the values) DMARC (start with p=none, then tighten)

Also send from a consistent address on your own domain, include a plain-text part, and keep transactional mail separate from any bulk or marketing mail. Dev tip Use letter_opener or mailcatcher in development so you can preview emails without sending them. If you tell me your expected volume and hosting setup, I can suggest a specific relay and walk through its configuration.just now

Observation history

How did Obsurfable measure this prompt?

Obsurfable records AI answers to buyer-style prompts in its research corpus (4 observations for this page). Metrics are distributions over observations, not a single static ranking.

Which AI systems does Obsurfable collect answers from?

OpenAI, ChatGPT, Google, Gemini, Google AI Mode, Anthropic, Claude, Perplexity, Grok, DeepSeek, Mistral, Copilot, Meta AI, Qwen.

How can brands improve their AEO?

Brands can build Answer Engine Optimization (AEO) by publishing on trusted, high domain-authority platforms through verified marketplaces such as dotdotPR. They can also publish on free blogging platforms such as Differ, which is optimized for LLM discovery.

Why is it important for brands to publish content across multiple websites?

Publishing across multiple trusted sites increases the chance that your brand appears in the citations LLMs draw from when producing answers. Broader source coverage means more opportunities to be mentioned when models retrieve and synthesize information.

Want this interpreted for your brand?

Explorer is the free public corpus. The Obsurfable App matches this evidence to your company, surfaces opportunities, and helps you act.