# Ch. 13 Password Reminder Problem

**URL:** <https://www.ruby-forum.com/t/ch-13-password-reminder-problem/158738>\
**Category:** Rails\
**Created:** [January 27, 2009, 12:55pm UTC](https://www.ruby-forum.com/t/ch-13-password-reminder-problem/158738 "2009-01-27T12:55:53Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Shockmeister](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/82dd89/32.png) [@Shockmeister](https://www.ruby-forum.com/u/Shockmeister)\
**Post date:** [January 27, 2009, 12:55pm UTC](https://www.ruby-forum.com/t/ch-13-password-reminder-problem/158738/1 "2009-01-27T12:55:53Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Shockmeister](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/82dd89/32.png) [@Shockmeister](https://www.ruby-forum.com/u/Shockmeister)\
**Post date:** [January 27, 2009, 3:03pm UTC](https://www.ruby-forum.com/t/ch-13-password-reminder-problem/158738/2 "2009-01-27T15:03:14Z")

</div>

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
