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.0Custom Library component best practiceCustom Library component best practice
Previous
 
Next
New Post
6/2/2008 4:37 AM
 

I have had problems in the past with my hosted sites email servers going down at times when an email was being sent. Since this could result in lack of important communications coming in, I was forced to modify DotNetNuke ( I know, I know ). I have been running this code for quite some time without issue in any modules.

With that being said, I wanted this implementation to be as close to invisible to the core as possible. This way no modules that use the core SendMail method would fail. I have wrapped the core SendMail class around a new mail provider class. This way I can switch mail providers as needed. For instance the 3 I have created so far. A default core implementation, a fail safe queue with retries, & a mock for testing purposes of the general site. When I pull a site down to a test environment before a upgrade, I switch to the mock provider to prevent mail from really being sent.

I think a provider for mail has many advantages in the core of DotNetNuke. I know Cathal & Shaun was interested when I mentioned this to them before DNN 4 shipped. But they were busy getting 4.0 out the door. I would still like to offer this back to the Core for inclusion.  

What are others thoughts on this? I may need help / votes for this to be included.

Dave

 
New Post
6/9/2008 1:31 PM
 

You have my vote. It seems a very practical thing to do to have a way to use  alternate Mail providers. I particularly like the idea of a queue. I have been using queues for sending mail from websites for years (I use a rock-solid commercial product from www.chilkatsoft.com) and sorely miss them on DNN.

My own needs are similar except I really want to use an alternate Mail provider on a session scope basis, not just application scope as you describe. I get cross when flexibility is linked to web.config rather than something that can be applied on a per-user basis:-)  Very often, I want to test a feature on a live site while leaving other users of the site alone.

For now to fulfill my desire to override email address with my own, I have just added a couple of lines of code to Mail.vb to check a cookie and use its contained email address if it is there. Everything else happens in an httpModule, so no other core changes.

 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Custom Library component best practiceCustom Library component best practice


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