O
Oleg Ogurok
Hi all,
I have a Mailer class with a Send(string[] toAddresses) method which sends
e-mail messages to my web users. Since I don't want a web client to wait
until the messages are sent, I call Send() asyncronously.
However, because I create an instance of Mailer class inside codebehind, as
soon as the page finishes sending HTML to the client, it terminates the
background Send() process. This is because the page loses the pointer to the
Mailer object.
What is the best way to ensure that the backgound process keeps processing
even after the page is destroyed?
Thanks,
-Oleg.
I have a Mailer class with a Send(string[] toAddresses) method which sends
e-mail messages to my web users. Since I don't want a web client to wait
until the messages are sent, I call Send() asyncronously.
However, because I create an instance of Mailer class inside codebehind, as
soon as the page finishes sending HTML to the client, it terminates the
background Send() process. This is because the page loses the pointer to the
Mailer object.
What is the best way to ensure that the backgound process keeps processing
even after the page is destroyed?
Thanks,
-Oleg.