Eric Bergman-Terrell's Blog

Ruby on Rails: Configuring the Email Protocol
November 28, 2011

When I was testing my app on my development machine, I had my app configured to send email via SMTP. When I deployed it to the host (site5), email stopped working.

Changing the email protocol in my environment.rb file to sendmail fixed this issue.

environment.rb:

...
Ericbt::Application.configure do
...
  config.action_mailer.perform_deliveries = true
  config.action_mailer.raise_delivery_errors = true
  config.action_mailer.delivery_method = :sendmail
end

# Initialize the rails application
Ericbt::Application.initialize!

...
Keywords: Rails, Ruby on Rails, site5, email, mailer, SMTP, sendmail

Reader Comments

NameCommentURLDate/Time
danielaThanks - always used smtp in the past, now didn't work, but ok with sendmail...
November 11, 2012

Comment on this Blog Post

Recent Posts

TitleDate
Node.js + Express: How to Block Requests by User-Agent HeadersJanuary 7, 2026
Vault 3 is Now Available for Windows on ARM Machines!December 13, 2025
Vault 3: How to Include Outline Text in Exported PhotosOctober 26, 2025
.NET Public-Key (Asymmetric) Cryptography DemoJuly 20, 2025
Raspberry Pi 3B+ Photo FrameJune 17, 2025
EBTCalc (Android) Version 1.53 is now availableMay 19, 2024
Vault 3 Security EnhancementsOctober 24, 2023