Multi-Threading in .NET
Posted
by AIC
on Stack Overflow
See other posts from Stack Overflow
or by AIC
Published on 2010-03-09T07:18:28Z
Indexed on
2010/03/09
7:21 UTC
Read the original article
Hit count: 336
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
© Stack Overflow or respective owner