Click here to Skip to main content
15,896,063 members
Articles / Web Development / ASP.NET

Send 1000s of Emails Without Timeout

Rate me:
Please Sign up or sign in to vote.
4.53/5 (18 votes)
13 Dec 2009CPOL2 min read 61.5K   2.8K   83  
Now you can send more than 1000 emails with a simple website and a process
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

public partial class Progress : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        //first check to see if any exceptions occurred
        if (Session["ProcessRunning"] != "0")
        {
            Response.Write("<META HTTP-EQUIV=Refresh CONTENT=\"3; URL=\"\"> ");
            return;
        }
        else
        {
            Page.RegisterStartupScript("newWindow", "<script> window.opener.location.href= 'Default.aspx?id=1'; setTimeout('close()', '500');</script>");
        }
    }
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Team Leader IDS
Lebanon Lebanon
Adore programming, interested in workflows, SharePoint and silverlight, Entity Framework.
My Blog: http://suhamneimne.wordpress.com

Comments and Discussions