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.


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

# Initialize the rails application

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

Reader Comments

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

EBTCalc Users: A Desktop Version is Now Available!October 25, 2019
Python Script to Audit MediaMonkey TranscodingAugust 15, 2019
How to decompile Java code with JetBrains IntelliJ IDEA (2018.2.3, Windows 10)October 5, 2018
Java Programming Tip: SWT Photo Frame ProgramOctober 31, 2016
Vault 3 (Desktop) Version 1.63 ReleasedSeptember 9, 2016
"Compliance with Court Orders Act of 2016"April 9, 2016
Disable "Visual Voicemail" on Android / T-MobileJanuary 17, 2016