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

HomeHomeUsing DNN Platf...Using DNN Platf...Using Modules a...Using Modules a...Email Notificaitons in the WorkflowEmail Notificaitons in the Workflow
Previous
 
Next
New Post
8/17/2011 10:07 AM
 
I am a programmer currently using the professional version of DNN 6 and have been asked to enhance the workflow portion of the HTML module to send emails as the status changes from changed content > approval > published as content moves through the workflow process.  From my research, it appears that the ability to send email notificaitons is now a part of the core HTML workflow process, but I have not been able to find any settings or documentation to confirm or reject whether this is a part of the core framework or not.  It makes sense that this would be included but I can find no documentaiton on this for version 6.  So, my first question is: Is email notificaiton a part of the workflow process in the core of the professional version?

Also, being a .Net and SQL Server type programmer I tend to want to write a simple trigger that read form an external table and sends an email based on the section but it would require a change to the core modules and tables which we would like to avoid for obvious reasons and would require keeping a separate table in another area (potentially) rather than having the workflow in the settings of the core.  The last time I worked with DNN was years ago (slightly past the ibuyspy era) and mainly I just wrote new modules not extending the core functionality or impacting it.  Since then much of the core functionality has changed and been enhanced form what I have read and tried.  So my second question is this: What would be the best way to extend this functionality to include emails without effecting the core?  I know that the ClientAPI can be used to "wrap" the core modules, but I would also want to extend the settings so that the next person in the workflow could be controlled there (by module or by the person updating the page).  No idea where to start and what the best practices might be for developing so that updates do not destroy my extensions.

Any insight that anyone can provide would be appreciated.

Thanks,
Jeff
 
New Post
8/21/2011 6:33 PM
 
The new namespace you refer to is the DotNetNuke.services.messaging.MessagingController and allows granular control over portal messaging -if you're just looking to send email then the core Mail.SendMail classes are a valid choice (they integrate to the messaging service also)

As to using triggers, its always dangerous as triggers on core tables can cause upgrades/module installs to fail -id suggest staying away from it. If you dont want to change core code then probably the easiest option would be to create a scheduled task (see http://kemmis.info/blog/archive/2008/... for a good guide) and check for changes in workflow state and send an email (the problem with this is you'll also have to record why you sent the mail so you only send one mail per service change)

Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
 
New Post
9/14/2011 12:16 PM
 
Thanks for the information Cathal! You have been helpful as always!

Cheers,
Jeff
 
New Post
5/13/2012 11:17 AM
 
Is it possible in the 6.1 Community Edition version for admin to be notified when somebody posts new content in an HTML module that is staged?

I'm too poor for anything other than the community version
 
New Post
5/13/2012 6:33 PM
 
yes, if the module is set to content approval (CE) or uses workflow (PE/EE) then emails are sent to the relevant users - http://hive.dotnetnuke.com/Default.aspx?tabid=269 . If its set to direct publish in any release no email is sent - you would have to write a scheduled task to pick up the change - however I imagine we will be adding functionality such as this post 6.2.0 (in 6.2.0 we only converted email messages from html/translated pages to use the new notifications API - but we will be added lots of additional notifications once 6.2.0 is out and stable)

Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Using Modules a...Using Modules a...Email Notificaitons in the WorkflowEmail Notificaitons in the Workflow


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