Forum: Ruby on Rails ActionMailer not working correctly

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
69d524565ee927f209b5dcc04f313450?d=identicon&s=25 Chris Sepic (csepic)
on 2006-03-14 15:36
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.
4daf0b71d5d9a3882e583c0e72eaf5dc?d=identicon&s=25 Alan Francis (Guest)
on 2006-03-14 16:56
Chris Sepic 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.
69d524565ee927f209b5dcc04f313450?d=identicon&s=25 Chris Sepic (csepic)
on 2006-03-14 17:47
I am seeing:

250-AUTH PLAIN LOGIN
250-AUTH=PLAIN LOGIN

Does this mean :authentication => :login won't work?
This topic is locked and can not be replied to.