protected void btnSend_Click(object sender, EventArgs e) { DataLayer dl = new DataLayer(); if (cbxArchive.Checked) { dl.AddNewsletter(DateTime.Now, tbxSubject.Text, rteBody.Value); } System.Threading.Thread t = new System.Threading.Thread(new System.Threading.ThreadStart(SendEmails)); t.Start(); //SendEmails(); Session["resultColor"] = "#007700"; Session["resultTitle"] = "Newsletter Sent"; Session["resultMessage"] = "Newsletter is sending.<br />It could take a few hours depending on the number of subscribers."; Session["resultReturnURL"] = "Newsletter.aspx"; Response.Redirect("Result.aspx", true); }