Forum: Ruby on Rails Ch. 13 Password Reminder Problem

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.
Shockmeister (Guest)
on 2009-01-27 13:55
(Received via mailing list)
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:in `auth_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:in `auth_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:in `authenticate'
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:in `start'
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:in `perform_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:in `deliver!'
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:in `remind'




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
Frederick C. (Guest)
on 2009-01-27 16:03
(Received via mailing list)
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
This topic is locked and can not be replied to.