HomeDev GuideAPI Reference
Dev GuideAPI ReferenceUser GuideLegal TermsGitHubNuGetDev CommunitySubmit a ticketLog In

Configure email notifications for content approvals

Describes how to configure email notifications for content approvals.

You can configure email notifications for content approvals to be sent immediately or periodically as a batch.

📘

Note

You need to configure the SMTP settings for Optimizely Content Management System (CMS) to send out email notifications, see Configure your email server.

  • Before CMS 11.13.0 – The behavior of content approval notification emails before CMS 11.13.0 was to send an email immediately for each notification, which may send too many emails, depending on how you configure the content approvals.
  • As of CMS 11.13.0 – The default behavior is to send emails to users periodically, batching notifications into a single email and sending at regular intervals. You can configure content approval notification emails to be sent either immediately or periodically for all users. Because the content approval notification emails are sent periodically by default, you need the configuration only when this is not the desired behavior. Configure ApprovalNotificationOptions during application initialization to send emails immediately. Configuring the dispatch interval for emails is handled in the scheduled job, see the notification dispatcher job section below.

The following example shows how you can configure the options during application initialization. A module dependency on FrameworkInitialization is required to ensure correct execution order.

[InitializableModule]
[ModuleDependency(typeof (FrameworkInitialization))]
public class ApprovalNotificationInitialization: IConfigurableModule {
  public void ConfigureContainer(ServiceConfigurationContext context) {
    context.Services.Configure<ApprovalNotificationOptions>(options => options.Immediate = true);
  }
}

There is a scheduled job, Notification Dispatcher, that dispatches notification emails at regular intervals. If you configured content approval notification to send emails then the scheduled job determines the interval for email dispatches.

The job is enabled by default and set to run every 30 minutes.