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 !
sharma.rahul375
0
Newbie Poster
Recommended Answers
Jump to PostI think the mail could not be sent before the directory is deleted.
No, not if you're using spooling. With spooling mail is sent via a separate thread and may be sent after you delete the file. If you read the docs on cfmail that's the expected behavior (see below). …
All 3 Replies
Reply to this topic
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.