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
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
IPv6 HumorDecember 10, 2015
Java Programming Tip: Specify the JVM time zoneDecember 7, 2015
Node.js / Express Programming Tip: Detect and Fix Memory LeaksOctober 27, 2015