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.
--
Posted via http://www.ruby-forum.com/.
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. -- Posted via http://www.ruby-forum.com/.