Mail from Ruby on Rails

software development


I’m trying to figure out how to configure my environment.rb file in a Ruby on Rails application so that it correctly sends out email messages; based on what I see at and, this is what I have:

ActionMailer::Base.delivery_method = :smtp
ActionMailer::Base.server_settings = {
:address => “”,
:domain => “”,
:port => 25,
:authentication => :login,
:user_name => “USER”,
:password => “PASSWORD” }
ActionMailer::Base.perform_deliveries = true
ActionMailer::Base.raise_delivery_errors = true
ActionMailer::Base.default_charset = “utf-8”

This LOOKS right, but I’m seeing errors in my log file that indicate that I’m not authenticating when the send is attempted. I know that the user name, domain, and password are correct. If you have any guidance for me, I’d really appreciate it.

Thanks again,


I just edited the delivery_method line to:
ActionMailer::Base.delivery_method = :sendmail, and now it works like a charm. Thanks anyway!