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...Administration ...Administration ...formatting of mailed event notificationsformatting of mailed event notifications
Previous
 
Next
New Post
2/25/2009 4:37 AM
 

We have a running DotNetNuke installation (4.8.2) on various servers. Each server mails event notifications to our IT mailing list. However, this e-mail arrives without any formatting whatsoever, even newlines are stripped. This makes the notification mails highly unreadable, so I would like to change this.

Unfortunately neither Google nor the DotNetNuke site and forums allowed me to find the answer. Of course I tried to go through all configuration options but I could not find it.

For example, a part of an error message we receive might look like this:

AssemblyVersion04.08.02PortalID-1PortalNameUserID-1UserNameActiveTabID-1ActiveTabNameRawURL/xxxx/Hos
t/Portals/tabid/xx/portalid/xxx/Default.aspxAbsoluteURL/xxxx/Host/Portals/tabid/xx/portalid/xxx/Defa
ult.aspxAbsoluteURLReferrerUserAgentMozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4
322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022)DefaultDataProviderDotNetNuke.Data
.SqlDataProvider, DotNetNuke.SqlDataProviderExceptionGUIDzzzzzzzz-zzzz-zzzz-zzzz-zzzzzzzzzzzzInnerExce
ptionCould not load file or assembly 'DotNetNuke.Modules.Media' or one of its dependencies. The system 
cannot find the file specified.FileNameFileLineNumber0FileColumnNumber0MethodSystem.RuntimeTypeHandle._
GetTypeByNameStackTraceMessageSystem.IO.FileNotFoundException: Could not load file or assembly 'DotNet
Nuke.Modules.Media' or one of its dependencies. The system cannot find the file specified. File name: '
DotNetNuke.Modules.Media' at System.RuntimeTypeHandle._GetTypeByName(String name, Boolean throwOnError, 
Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark, Boolean loadTypeFromPartialName) 
at System.RuntimeTypeHandle.GetTypeByName(String name, Boolean throwOnError, Boolean ignoreCase, Boolea
n reflectionOnly

Hopefully any of you guru's out there have a suggestion on how to investigate and/or fix this problem

 
New Post
2/25/2009 1:01 PM
 

Please check, whether the mail server allows to send HTML mails, some servers might strip the html code from the mail content.


Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
2/26/2009 11:25 AM
 

Sebastian, thanks for your time and your response.

Unfortunately this can't really be the problem; this smtp server accepts and sends all kinds of messages just fine. A good example in this context would be another type of message that is also sent by DotNetNuke, being portal-signup-mails. A typical message we receive is formatted nicely/normally, for example as follows:

Dear xxxx xxxx,

Your Portal Website Has Been Created. Please read the following
information carefully and be sure to save this message in a safe 
location for future reference.

Portal Website Address: xxxx.xxxx.xx/xxxxxxxx
Username: xxxxxxxxx
Verification Code: xx-xx

Please take the opportunity to visit the website to review its 
content and take advantage of its many features.

Thank you, we appreciate your support...

DotNetNuke
 
New Post
3/3/2009 4:48 AM
 

Unfortunately we haven't found the problem yet. I've found a few more hints though that I'd like to share. Hopefully it will trigger someone to suggest a solution or at least provide others with the same problem with some information.

The first additional piece of information i discovered is that the event notifications we receive are actually exactly as the example I posted earlier; there is no hidden stuff if I view the source of the message. It also views the same regardless of mail client.

The second piece of information may even be more important. If I select certain events in the event viewer, and then mail those individual notifications, we get this (only start of the message shown):

Custom message here!
<LogEntries><log LogGUID="xxxxxxx-xxxx-xxxx-xxxx-xxxzxxxxxxxx" LogFileID="" LogTypeKey="PAGE_LOAD_EXCEPTION" LogUserID="-1" LogUserName="host" LogPortalID="xx" LogPortalName="" LogCreateDate="2-3-2009 10:56:03" LogCreateDateNum="0" BypassBuffering="False" LogServerName="xxxxxxxxxx" LogConfigID="6"><LogProperties><LogProperty> etc etc etc

 
New Post
4/9/2009 9:40 AM
 

In case anyone googling for this very problem ends up in this thread, here's the solution (annex workaround) we now use.

As far as we could research our problem is the result of a bug or omission in DotNetNuke (4.8.2). We chose a completely different approach to reach the same goal.

We wrote a custom SSIS script that is called from a batch file, which in turn is scheduled by Windows to run every 5 minutes.

The SSIS package retrieves the last 5 minutes worth of entries from the EventLog table in the DotNetNuke database. The LogProperties column is simple xml which is parsed through XSLT to an html. The SSIS package sends html-formatted e-mail then to our error-mailing-list.

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...formatting of mailed event notificationsformatting of mailed event notifications


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