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