Hi guys! There is a problem in sending mail through the action mailer. Sometimes the mails are successfully sent whereas in some cases it gives me Timeout error. The controller code that I wrote is as follows:- NotifierMailer.deliver_sendpassword(sMailId, sPassword, capitalize_words(sUserName)) redirect_to :controller => "mycnt", :action=>"index",:q_sMailId=>sMailId,:q_fSuccess=>"1" At times its redirecting properly to the index page but most of the time it gives me the timeout error. Is there any way to increase the script execution time? thanks in advance. regards, john -- 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 -~----------~----~----~----~------~----~------~--~---
I''ve thought about this - would it work to thread out the processes, then render, then join at the end? Surjya Hazarika wrote:> Hi guys! > > There is a problem in sending mail through the action mailer. > Sometimes the mails are successfully sent whereas in some cases it gives > me Timeout error. > The controller code that I wrote is as follows:- > > NotifierMailer.deliver_sendpassword(sMailId, sPassword, > capitalize_words(sUserName)) > redirect_to :controller => "mycnt", > :action=>"index",:q_sMailId=>sMailId,:q_fSuccess=>"1" > > At times its redirecting properly to the index page but most of the time > it gives me the timeout error. > > > > Is there any way to increase the script execution time? > > thanks in advance. > > regards, > john > >--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Jason Norris wrote:> I''ve thought about this - would it work to thread out the processes, > then render, then join at the end?Thanks for the reply. But the problem is that it is sending the mail and then instead of redirecting to the index page, it gives me error 500 Page could not be found. -- 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 -~----------~----~----~----~------~----~------~--~---
404 is page not found. 500 is internal server error. Is the mail server you''re connecting to local? Most user mail accounts are set up for POP before SMTP. Possibly yours is the same way, so if you''ve POPed recently, it works, and if not, it doesn''t. For production, this obviously shouldn''t be a problem, since the app should be on a machine that has free access to the mail server. Just my thoughts. Jason Surjya Hazarika wrote:> Jason Norris wrote: > >> I''ve thought about this - would it work to thread out the processes, >> then render, then join at the end? >> > > Thanks for the reply. But the problem is that it is sending the mail and > then instead of redirecting to the index page, it gives me error 500 > Page could not be found. > >--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---