Ch. 13 Password Reminder Problem

Hi all,

When I enter a valid email address in the remind me form and hit
enter, I get the following error:

Net::SMTPUnknownError in EmailController#remind

533 5.7.1 AUTH command is not enabled.

Trace:

C:/INSTAN~1/ruby/lib/ruby/1.8/net/smtp.rb:680:in check_response' C:/INSTAN~1/ruby/lib/ruby/1.8/net/smtp.rb:582:inauth_login’
C:/INSTAN~1/ruby/lib/ruby/1.8/net/smtp.rb:686:in critical' C:/INSTAN~1/ruby/lib/ruby/1.8/net/smtp.rb:581:inauth_login’
C:/INSTAN~1/ruby/lib/ruby/1.8/net/smtp.rb:571:in __send__' C:/INSTAN~1/ruby/lib/ruby/1.8/net/smtp.rb:571:inauthenticate’
C:/INSTAN~1/ruby/lib/ruby/1.8/net/smtp.rb:411:in do_start' C:/INSTAN~1/ruby/lib/ruby/1.8/net/smtp.rb:378:instart’
C:/INSTAN~1/ruby/lib/ruby/1.8/net/smtp.rb:316:in start' C:/INSTAN~1/ruby/lib/ruby/gems/1.8/gems/actionmailer-2.0.2/lib/ action_mailer/base.rb:586:inperform_delivery_smtp’
C:/INSTAN~1/ruby/lib/ruby/gems/1.8/gems/actionmailer-2.0.2/lib/
action_mailer/base.rb:469:in __send__' C:/INSTAN~1/ruby/lib/ruby/gems/1.8/gems/actionmailer-2.0.2/lib/ action_mailer/base.rb:469:indeliver!’
C:/INSTAN~1/ruby/lib/ruby/gems/1.8/gems/actionmailer-2.0.2/lib/
action_mailer/base.rb:352:in method_missing' app/controllers/email_controller.rb:9:inremind’

Parameters:

{“user”=>{“email”=>“my_email_address”},
“commit”=>“Email Me!”,
“authenticity_token”=>“a8c0d84f4ade2c55497787f65dcebcae3a233e87”}

My email_controller class looks like this:

class EmailController < ApplicationController

def remind
@title = “Mail me my login information”
if param_posted?(:user)
email = params[:user][:email]
user = User.find_by_email(email)
if user
UserMailer.deliver_reminder(user)
flash[:notice] = “Login information was sent.”
redirect_to :action => “index”, :controller => “site”
else
flash[:notice] = “There is no user with that email address.”
end
end
end
end

Has anyone come across this error before?

Thanks

On 27 Jan 2009, at 11:54, Shockmeister wrote:

Hi all,

When I enter a valid email address in the remind me form and hit
enter, I get the following error:

Net::SMTPUnknownError in EmailController#remind

533 5.7.1 AUTH command is not enabled.

I’d guess that you’ve got actionmailer setup to authenticate with your
smtp server and it is telling you it doesn’t support authentication.

Fred