Multi-Threading in .NET
- by AIC
Hi all..
I wrote this program, that is supposed to read about 5000 email address and send an pre-defined html mail. I am using the background worker component.
The problem is this: I have wired up the method who is supposed to send the mail. But I am calling another method that is supposed to append the body html to the salutation, like
public string GiveMeFullHtml(string personname) ... "Dear Mr. John Doe" + HTML ...
It seems that when it hits this method call, operation completes. IUt only sends the first mail and completes. I think because the HTML string method is on another thread or sth like that. Can you give me a little insight. Do I have to get everything done in the very same method when using multi-threading? Thanks in advance