I tried this:
BackgroundWorker bw = new BackgroundWorker();
bw.DoWork += (o, e) =>
{
SendConfEmail();
};
bw.RunWorkerAsync();
but it didn't work. SendConfEmail takes a while to run. I guess it's because BackgroundWorker is designed for winforms not webforms.
Any ideas how I can solve the problem?