Karthikragunath Bhavani
2008-Apr-22 08:49 UTC
error after sending email.(conection refused- connect(2))
hi all, in my application if the user forget the login details then they can go to a page where they can enter their mail id and the login details''ll be mailed them to that mail id.after mailing them the user''ll be redirected to the login page. but after entering the mail id and clicking the button im getting error like Errno::ECONNREFUSED in LoginController#take_forgotten Connection refused - connect(2) people knows whats the problem please help me. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Saravanan Krishnan
2008-Apr-22 12:45 UTC
Re: error after sending email.(conection refused- connect(2)
Karthikragunath Bhavani wrote:> > > hi all, > > in my application if the user forget the login details then they > can go to a page where they can enter their mail id and the login > details''ll be mailed them to that mail id.after mailing them the user''ll > be redirected to the login page. > > but after entering the mail id and clicking the button im > getting error like > > Errno::ECONNREFUSED in LoginController#take_forgotten > > Connection refused - connect(2) > > people knows whats the problem please help me.Hi I''m not sure about your specific problem but have you checked that your rails app is able to connect to the database/server? try this from script/console: ActiveRecord::Base.connection if that doesn''t raise any exceptions then the connection''s OK Regards Saravanan -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
It could also be an ActionMailer error. Try Saravanan''s suggestion, and if you''re still getting an error, paste the whole trace. It might also be helpful to see your config/environment.rb contents. You could try setting this in the Rails::Initializer.run do |config| block: config.action_mailer.raise_delivery_errors = false You might also need this in your environments/#{env}.rb files. Then again, you do want to know about delivery errors at this point, don''t you? -Kyle On Apr 22, 7:45 am, Saravanan Krishnan <rails-mailing-l...@andreas- s.net> wrote:> Karthikragunath Bhavani wrote: > > > hi all, > > > in my application if the user forget the login details then they > > can go to a page where they can enter their mail id and the login > > details''ll be mailed them to that mail id.after mailing them the user''ll > > be redirected to the login page. > > > but after entering the mail id and clicking the button im > > getting error like > > > Errno::ECONNREFUSED in LoginController#take_forgotten > > > Connection refused - connect(2) > > > people knows whats the problem please help me. > > Hi > > I''m not sure about your specific problem but have you checked that your > rails app is able to connect to the database/server? try this from > script/console: > > ActiveRecord::Base.connection > > if that doesn''t raise any exceptions then the connection''s OK > > Regards > Saravanan > -- > Posted viahttp://www.ruby-forum.com/.--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---