I am currently developing a solution in VB that needs to be able to send a set of emails in the background. I have been able to spin off a new thread to send the emails in the background, which works just fine, but a very serious question has arisen.
"What if the user logs out and closes the application? Will this in-turn close the thread that is sending the emails?"
There is a potential for this background process to be sending out hundreds of emails which could take a significant amount of time ( say 10 minutes or so). One of the instances of this will happen at the end of the users work day and would potentially happen just before the user logs out at the end of the day.
So, to the ultimate question of this post:
Is threading the answer for sending background emails or should I be looking into a different solution?