Wednesday, March 28, 2012

The best way to send a large number of emails

I have around 100,000 email addresses I want to send an email to each of this customer.
What is the best way to send emails to these customers?

I appreciate any idea,suggestion or comment.

Thank youHello, maybe you can have a script that creates a datareader out of all the emails in ur database, and then you can make one field of the email which is the "To" and concate all the emails u have seperating them with either ";" or "," and then send that email, which will go to many many emails u have !!!!!
Well the problem with that is how do you set the timeout value? How long is that going to take - 5 minutes or an hour or 3 hours to send 100,000 e-mails? Your asp.net page will time out if you don't set the timeout value extremely high.

I think he knows "how" to send e-mails, but wants to know what approach to use when sending volumes of email. And also, you don't want to put all the names in the TO field, you'd want to use BCC.
Hi,
For both of you here is how to set server time out:

The following example sets the request time-out period to 60 seconds.

[Visual Basic]
Server.ScriptTimeout = 60

[C#]
Server.ScriptTimeout = 60;

[C++]
Server->ScriptTimeout = 60;

[JScript]
Server.ScriptTimeout = 60
you can place it anywhere i ur page_load method.

good luck
You might want to make this a desktop app or a service instead. I would go with a desktop app, as you can create a simple GUI that will at least give you feedback as to at which section your code is at so that you know it's working. Then you don't need to set any kind of timeout. Just start it up before you go to bed and it should be done by morning.

Is there any logical way you can "chunk" the data? Don't forget that DataSets are stored in memory and DataReaders stay connected while you spin through them.

0 comments:

Post a Comment