I was concerned about how threads can be used in Coldfusion. Actually I am using 'cfmail' tag to send a mail with an attachment and I am storing the attachment file in a directory. What happens to be in the code is that, After using the cfmail tag I am deleting the directory. When I check the mail for the attachments it is not there. I think the mail could not be sent before the directory is deleted. Mail could not be sent prior to directory deletion. PLease comment !