How would I create a multi-threaded mass emailing program?

Posted on 2007-09-29
Last Modified: 2013-12-17
I'd like to see the latest in emailing tecnology from C# for an email with an HTML body and a single attachment.  And I'd like the program to be multi-threaded so I can be sending a hundred emails all at once.  It will be run as a web service, or if you can suggest another model where it can be run from my website.

I have Visual Studio 2005

Question by:newbieweb
    LVL 21

    Accepted Solution

    Here is a ready to use program from code project but it has a larger technology stack.

    If you are just going to send hundreds of mails < 999. I dont think you would need multi-threading. What volume of spam are u trying to create ? :)

    Author Comment

    it's not spam.  We just have a lot of customers.  

    I do want to maximize the throughput of the connection and want multi-threading, if it's not too difficult to do.

    what is "a  larger technology stack"?
    LVL 21

    Expert Comment

    hey i was just kidding :)

    Well what i meant was that just to implement this solution you might need Microsoft® SQL Server 2005. If u already have this, it wouldnt add on to your list of technoloiges to implement this.

    Jus curious, How many mails are you looking to send?

    Author Comment

    about 100 billion.

    just kidding :)

    that WOULD be spam!

    What's involved with getting this running at an ISP?  SQL Server 2005 would already be running.  Would I just need to provide a connection string or identify the SQL Server database to be used?
    LVL 21

    Expert Comment

    well this solution from code project uses SQL server 2005 service broker. You may want to check with ur ISP if thats enabled.
    I havent uses this product personally or know its sepcifics but i came to know about this when we were trying to implement a custom mass mailer program and some one came up with this already existing program. Try it out in your local setup, see if it meets ur requirement/volume/ performance first.
    LVL 7

    Assisted Solution

    It does not matter, your sever (say Exchange) is going to queue them up and send them when it feels like it. So your system could send 5000 emails at "once" however, the servers required to get those emails out in to internet-space is going to handle them one at a time more or less.

    Featured Post

    What Should I Do With This Threat Intelligence?

    Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

    Join & Write a Comment

    This article is for Object-Oriented Programming (OOP) beginners. An Interface contains declarations of events, indexers, methods and/or properties. Any class which implements the Interface should provide the concrete implementation for each Inter…
    Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
    To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…
    This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

    745 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    19 Experts available now in Live!

    Get 1:1 Help Now