From: Sijo Kg Date: 2008-06-06T16:13:55+09:00 Subject: Threading in ruby Hi I have succesfully send mail from my rails application..I did it like below.What I am doing is send a mail to an assignee. def after_transfer code-------- code------ send_mail_to_primary_assignee(assignee_id) end #This is the function responsible for sending mails def send_mail_to_primary_assignee(contact_id) contact_name=Contact.find(contact_id).name official_email_ids = ContactEmailAddress.find_all_by_contact_id(contact_id ,:conditions => "contact_email_address_type_id = '2'" ) official_email_ids.each do |official_email| ServiceDeskMailer.deliver_to_send_mail_to_primary_assignee_on_transfer_reason(official_email,contact_name) end puts "```````````````````` " end Then my question is how can i put this to seperate thread in ruby..Why I am asking this is only after all the mails are send i can continue in the view..So if I put this to a thread is that problem solved .Since I am new thread especially in ruby could you please tell me how i can implement that? Thanks in advance Sijo -- Posted via http://www.ruby-forum.com/.