Action Mailer - Timeout error

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

I’ve thought about this - would it work to thread out the processes,
then render, then join at the end?

Jason N. 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.

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