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
.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
Vault 3 is now available for Apple OSX M2 Mac Computers!September 18, 2023
Vault (for Desktop) Version 0.77 ReleasedMarch 26, 2023
EBTCalc (Android) Version 1.44 is now availableOctober 12, 2021