search for: eventmail

Displaying 1 result from an estimated 1 matches for "eventmail".

Did you mean: sentmail
2006 May 01
1
Best way to do task in background in Rails
...e user that the messages have been sent. I would like to show the acknowledgment right away instead of the noticable delay I''m seeing now depending on the number of recipients. In my ActionController I do this: <code> def send_invites ... thread = Thread.new(e) do |event| EventMailer.send_invites(event) end thread.join ### this is what I''m curious about! ... end </code> I''ve tested my code with Webrick and lighttpd on the Mac (Rails 1.1). I''ve found that without the thread.join, the code doesn''t work--the EventMailer doesn...