F
Frank
Hi,
I am trying the following code with no success. Any input would be
appreciated.
private void InsertMsg( )
{
//do some stuff and then send an email in a new thread because our mail
server is slow many times and I want to redirect without waiting for email
to complete
Thread t = new Thread(new ThreadStart(Send_Email));
t.Priority = ThreadPriority.Highest;
t.Name = "MailThread";
t.Start();
Response.Redirect("threads.aspx?TopicID=" +
Request.QueryString["TopicID"] + "&TopicName=" +
Request.QueryString["TopicName"]);
}//End Function InsertMsg()
private void Send_Email()
{
//function sends email via SMTP
}
I tried creating and strting the thread in Page_Unload event but that didn't
work either.
Thanks for any input
I am trying the following code with no success. Any input would be
appreciated.
private void InsertMsg( )
{
//do some stuff and then send an email in a new thread because our mail
server is slow many times and I want to redirect without waiting for email
to complete
Thread t = new Thread(new ThreadStart(Send_Email));
t.Priority = ThreadPriority.Highest;
t.Name = "MailThread";
t.Start();
Response.Redirect("threads.aspx?TopicID=" +
Request.QueryString["TopicID"] + "&TopicName=" +
Request.QueryString["TopicName"]);
}//End Function InsertMsg()
private void Send_Email()
{
//function sends email via SMTP
}
I tried creating and strting the thread in Page_Unload event but that didn't
work either.
Thanks for any input