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

HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0SendEmail in DNN sloooooowSendEmail in DNN sloooooow
Previous
 
Next
New Post
9/6/2008 7:41 AM
 

Does anyone have a recommendation on how to send email within DNN without the slow delay caused by SendEmail?  I tried using the Bulk method, however for sending a single email it's just as slow.  I'm looking to do something Async in a fire and forget fashion.

 
New Post
9/6/2008 8:01 AM
 

DotNetNuke.Services.Mail.Mail.SendMail uses Net.Mail.SmtpClient.Send with little overhead (only a few lines, depending on your call and parameters). Bulkmail calls SendMail for each send process, and therefore cannot be faster. I assume, you need to investigate, how to improve .Net mail.

A future inplementation might encapsulate the .net send with a provider, to allow you to use different conponents.


Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
9/6/2008 12:45 PM
 

How I got around this:

I had the SendEmail stubbed out anyway, so I simply INSERT the To, BCC, Subject and Body into a table and run a scheduled task in the background.  This means the email seems to go right away, however it is actually being delivered by a background process.  As a bonus it's logging all emails sent via my code from the site.  I don't want to change core at this time, but perhaps in the future having this done by either a service or scheduled task would be an optimal scenario.

 

 
New Post
9/7/2008 5:16 AM
 

Did you try to use bulkmail with tokens (to individualize content) in asynchronous mode, which will perform sending in a separate thread?


Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
9/7/2008 7:50 AM
 

The real issue was the time taking to Send if it was done as part of a user request.  If I use the Bulk method with a user it takes just as long to send 1 email async as with the non async and the user experience runs into a brick wall.  By sending on a scheduled task from the database it doesn't affect the user experience and can take as long as it needs to by using the serialized non-async method.  Each email is unique.

 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0SendEmail in DNN sloooooowSendEmail in DNN sloooooow


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