Developer forum

Forum » CMS - Standard features » Where to configure error/support email addresses across a Dynamicweb solution

Where to configure error/support email addresses across a Dynamicweb solution

Ferri Halfhide
Reply

Hi Team,

We’ve set up a new support email address that we want to use to receive notifications for issues like:

  • Scheduled task failures

  • Data import/export errors

  • Integration activity

  • General system errors / exceptions

  • Spam or injection attempts

  • …etc.

We’re looking to understand where across the platform this address should be configured to ensure we catch all relevant issues.

I vaguely remember being able to set an email for scheduled task failures, but I can’t recall where exactly this setting is found.

Here’s what I’ve found so far:

  • Settings > Security > FormSend notification to e-mail (when spam is detected)

  • Settings > Security > SQL InjectionSend notification to e-mail (when a SQL injection attempt is detected)

However, it’s not always clear where to input the email address, and we’re not sure if there are other places we should check.
Would really appreciate a checklist or best practices for configuring this email across the platform. Our goal is to ensure that any “bad” activity triggers a notification, as part of our monitoring setup for a client.

Thanks in advance for your help!


Replies

 
Nicolai Pedersen Dynamicweb Employee
Nicolai Pedersen
Reply

Hi Ferri

The setup of the default email is here: https://doc.dynamicweb.dev/manual/dynamicweb10/settings/system/system/solutionsettings.html

BR Nicolai

 
Ferri Halfhide
Reply

Hi Nicolai,

Thanks for your reply!

I’m indeed aware of the default email setting you linked — thank you for confirming that one.

However, my question was more about covering specific scenarios where something goes wrong in the system, like:

  • A scheduled task fails

  • A data integration/import throws an error

  • An exception occurs during a job run

  • Or even more specific error logging triggered by custom activities

We’re setting up a centralized monitoring email address for support purposes, and we’d like to make sure we catch as many of these events as possible via email alerts. So ideally, the moment a failure or error occurs in one of these processes, the support team is notified immediately.

 
Nuno Aguiar Dynamicweb Employee
Nuno Aguiar
Reply
This post has been marked as an answer

Hi Ferri,

 

Unfortunately there is not a centralized tool to look at all email related events in the System. Features are mostly modular, so any email notifications/setup would be found within it's context; this makes your exercise really hard (I can relate because I've been there a few times myself).

 

In Insights > Monitoring > Notifications you can do some of this, but it's a bit highlevel. May serve your purposes. If it doesn't, you probably need to search for all possible occurences.

 

Best Regards,

Nuno Aguiar

Votes for this answer: 1
 
Ferri Halfhide
Reply

Thanks, Nuno!

Yeah, that’s what I suspected too.

However, I was wondering about the notification setup in Monitoring — specifically regarding the Category dropdown.

If I leave it as “Nothing selected”, does that mean it applies to all categories, or do I need to create a separate notification for each one?

I vaguely remember that in DW9 there was an option like “All categories”, so I want to make sure I’m not missing anything here.

 

Thanks in advance!

 
Nuno Aguiar Dynamicweb Employee
Nuno Aguiar
Reply

Hi Ferri,

 

I don't know, so you'd have to test. I believe you have to have it configured. Should be relatively simple if you test it with "Information" as a notification level. You should get flooded with emails :)

 

It's also easy to trigger an error, just add some bad code in a template and try to render the page. That should populate a record in GeneralLog with the Health category.

 

// Nuno

 
Ferri Halfhide
Reply

Hi Team,

The monitoring itself is working correctly, so no issues there. However, we do have a follow up question regarding the notification emails.

At the moment, the email notifications only inform us that something went wrong, but they do not contain any detailed information.

Is it possible to extend these emails with additional details since this already exist in DW such as:

  • The specific events or jobs that failed

  • Relevant log or error messages

  • A list of events that resulted in an error

Our goal is to further optimize monitoring for our clients, and having more detailed information directly in the notification email would greatly improve response time and troubleshooting.

Looking forward to your feedback.

 
Nuno Aguiar Dynamicweb Employee
Nuno Aguiar
Reply

Hi Ferri,

 

I'm not sure but if you add @TemplateTags() (click for more information) to your razor email template, and then trigger the email notification, you should get a comprehensive list of what's available.

 

//Nuno

 
Ferri Halfhide
Reply

Hi Nuno,

Thank you for the answer, I will try that method.

I do have one follow up question though. Which Razor email templates are actually used for sending these notifications? I have been searching through the Files folder, but I cannot seem to find the template that is responsible for these emails.

Could you point me to the correct location ?

Thanks in advance.

 
Nuno Aguiar Dynamicweb Employee
Nuno Aguiar
Reply

Hi Ferri,

 

I'm sorry, I mispoke. Seems like there is no such template

// Nuno

 
Ferri Halfhide
Reply

Hi Nuno,

Alright, that’s clear, thanks.

Just to confirm at this point: is it correct that it’s not possible to add more content than that single sentence to the notification email? I want to make sure I give my client a correct answer of what is possible and what is not with the current setup.

 

Thanks in advance for the confirmation.

 
Nuno Aguiar Dynamicweb Employee
Nuno Aguiar
Reply

Hi Ferri,

 

That is correct. Currently it is NOT possible. I guess the rationalle is to use this for Website administrator to be prompted to look into abnormal issues, not regular occurences that he'd dismiss over email.

 

So you might still want to use the other email notifications scared throughout the backend for proper error information (index build failures, data integration jobs, scheduled tasks, ....)

 
Imar Spaanjaars Dynamicweb Employee
Imar Spaanjaars
Reply

The email sender (at EmailHandler.Send in Nuno's code above) fires a subscriber called EmailNotifications.OnBeforeEmailSend. You could hook into that one, get the MailMessage from the args argument and append whatever you want to the body.

Note: this runs for every email. so make sure your code performs well and handles errors gracefully.

Imar

 

You must be logged in to post in the forum