Saturday, March 24, 2012

Suggestions to build Newsletter

Hi.

I want to build Newsletter to about 100 thousand user.

what is the best way to send that huge E-mails .

I think to use Thread.Sleep(500) after evry mail , is that good way , is there any more professional ways?

Good Evening Kojoh,

There are multiple was to do it, How I do it, is store the email addresses in a database, sql server 2005 but you can use the express version if you so choose, then you can either use sql to send the email(I don't think you can do this with the express version) but you can use asp.net to do it. You can just create a list and then send it via system.net.mail or if you have access to your own mail server, create a distribution list based on the addresses stored in the database. Totally up to you. Not sure your requirements or utilities at your disposure.

Joshua


thank's dearfolkertsj .

I don't ask how to send mail , I know how to do it . but my question is if I use to send thousands of mails one time it will hung the server.

Regards.


Indeed - the issue is how to send bulk emails.

There are lots of ways to achieve this safely. I find the simplest and easiest way is to use a bulk email component. The one I typically use for this isAspEmail (works with ASP and ASP.NET) as it has support for just about everything you can think of.


DearBSolveIT Thank's for your replay ,

I know the code and I have host server that support SMTP Server . I wl explain more:

I use like this code:

while (ReaderUsers.Read()) { MailAddress To =new MailAddress(ReaderUsers["UserMail"].ToString()); MailAddress From =new MailAddress("Email@.Email.com"); MailMessage MyMail =new MailMessage(From, To); MyMail.Subject ="Subject"; MyMail.Body ="the body"; SmtpClient smtp =new SmtpClient("my smtp Server"); smtp.Send(MyMail); }

This Reader contain a thousands of recored . if I send it like this I will make a problems in the server I gess. how can solve this problem , is it good done if I useSystem.Threading.Thread.Sleep() between E-Mails?


Hi Kojoh

I would suggest that you probably don't want to do that. I understand that you want to slow down the speed at which the emails are generated, but then you're also going to end up with a page that will take a LONG time to process... which you'll then have to cater for.

Better, as I mentioned, is to use a bulk email component. The one I mentioned uses it's own SMTP server, and handles it's own queue. However, it has 64 SMTP threads allowing it to send hundreds of emails a second.

If you don't have your own server, ask your hosting company if there is a bulk email capable component installed on the server that you can use. if they haven't got one, ask if they would consider installing the one I suggested.


BSolveIT:

If you don't have your own server, ask your hosting company if there is a bulk email capable component installed on the server that you can use. if they haven't got one, ask if they would consider installing the one I suggested.

Thank's alotBSolveIT.

my host need extra money to do that, now I look to do that by the code!! is there any suggestions ?.


up.


I strongly advise to switch to a host that has support for this, as either way you're current host is likely to be unhappy.

0 comments:

Post a Comment