Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDevelopment and...Development and...DNN Platform (o...DNN Platform (o...Any Developer docs or hints for Bulk EmailAny Developer docs or hints for Bulk Email
Previous
 
Next
New Post
12/20/2011 9:02 AM
 

Hi,

I operate a group buying syndicate for central heating oil (www.oilconsolidation.co.uk).  I need to send out bulk email to groups of members - 1000 plus - at a time.  I have written my own set of modules to automate the buying and the syndicate management processes.

I used to send the emails synchronously behind a button click.  Very simple code using System.Net.Mail.MailMessage and  System.Net.SmptClient. This is a poor solution because it takes too long to kick a lot of emails out of the door.  I get response timeout errors beyond a few hundred emails.  I have to manually limit the set to a few hundred, and that is annoying.

I thought a few versions ago I read that DNN had acquired a bulk email background service.

I got excited when I found the DotNetNuke.Services.Mail.SendTokenizedBulkEmail class in the source code.  When I look at the code it seems to do exactly the same as my code (using MailMessage and SmtpClient), which I already know is inadequate.

Am I reading the code wrongly?  Am I looking in the wrong place?  Is there a good solution to bulk (1000 plus) emails already in DNN?  Do I need to stick with homebrew code or a third party solution?


Best wishes,
- Richard
Agile Development Consultant, Practitioner, and Trainer
www.dynamisys.co.uk
 
New Post
12/20/2011 12:05 PM
 

All send mail tools are limited by the performance speed of the smtp gateway tool you are using - and the number of parallel send ports that tool has open.

But regardless - from your post it seems more likely that your issues are related to the design of your send code as opposed to any performance issues with System.Net.Mail.MailMessage and  System.Net.SmptClient.

Instead of trying to force the send process to run faster - and complete before the browser times out - you should instead change your code to handle the send in a background process.

Basically - what this does is move your send mail process away from the browser timeout cycle - which means it can sit and run in background for as long as it needs too.

Have a look at the code in the newletter module - and more specifically the SendMailAsyncronously method - it shows you have to use  SendTokenizedBulkEmail correctly using a background process.

Westa  


 


 
New Post
12/20/2011 4:20 PM
 

Hi Wes,

Absolutely my thoughts.  Thank you for the pointer to the newsletter module.

I had a (wrong) impression that the sending in a background process was automatic as of some recent version.


Best wishes,
- Richard
Agile Development Consultant, Practitioner, and Trainer
www.dynamisys.co.uk
 
Previous
 
Next
HomeHomeDevelopment and...Development and...DNN Platform (o...DNN Platform (o...Any Developer docs or hints for Bulk EmailAny Developer docs or hints for Bulk Email


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out