ActionMailer not working correctly

Anyone know why this wouldn’t work? I’m using acts_as_authenticated for
my login, and the mail is not getting sent. I’m using dreamhost. Here’s
my settings:

ActionMailer::Base.delivery_method = :smtp
ActionMailer::Base.server_settings = {
:address => “mail.mydomain.com”,
:port => 25,
:domain => ‘mydomain.com’,
:user_name => “blah”,
:password => “password”,
:authentication => :login
}
ActionMailer::Base.perform_deliveries = true
ActionMailer::Base.raise_delivery_errors = true
ActionMailer::Base.default_charset = “utf-8”

And the error from production.log:

Net::SMTPAuthenticationError (535 Error: authentication failed):
/usr/lib/ruby/1.8/net/smtp.rb:586:in ‘auth login’

I’ve checked the user/pass and they are correct.

Chris S. wrote:

Anyone know why this wouldn’t work? I’m using acts_as_authenticated for
my login, and the mail is not getting sent. I’m using dreamhost. Here’s
my settings:

ActionMailer::Base.delivery_method = :smtp
ActionMailer::Base.server_settings = {
:address => “mail.mydomain.com”,
:port => 25,
:domain => ‘mydomain.com’,
:user_name => “blah”,
:password => “password”,
:authentication => :login
}
ActionMailer::Base.perform_deliveries = true
ActionMailer::Base.raise_delivery_errors = true
ActionMailer::Base.default_charset = “utf-8”

And the error from production.log:

Net::SMTPAuthenticationError (535 Error: authentication failed):
/usr/lib/ruby/1.8/net/smtp.rb:586:in ‘auth login’

I’ve checked the user/pass and they are correct.

Does the server support that auth mechanism ?

If you telnet to the server on port 25 and type ‘EHLO myrailsbox.tld’ do
you see something like 250-AUTH LOGIN PLAIN in the response ?

A.

I am seeing:

250-AUTH PLAIN LOGIN
250-AUTH=PLAIN LOGIN

Does this mean :authentication => :login won’t work?