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:-
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
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.