PHPackages                             silverstripe/comment-notifications - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Mail &amp; Notifications](/categories/mail)
4. /
5. silverstripe/comment-notifications

ActiveSilverstripe-vendormodule[Mail &amp; Notifications](/categories/mail)

silverstripe/comment-notifications
==================================

Provides email notifications for visitor comments

3.0.0(3y ago)4138.5k↑20%71BSD-3-ClausePHPPHP ^8.1CI passing

Since Apr 13Pushed 5mo ago7 watchersCompare

[ Source](https://github.com/silverstripe/silverstripe-comment-notifications)[ Packagist](https://packagist.org/packages/silverstripe/comment-notifications)[ RSS](/packages/silverstripe-comment-notifications/feed)WikiDiscussions 4 Synced 1mo ago

READMEChangelog (10)DependenciesVersions (34)Used By (1)

Comment Notifications
=====================

[](#comment-notifications)

[![CI](https://github.com/silverstripe/comment-notifications/actions/workflows/ci.yml/badge.svg)](https://github.com/silverstripe/comment-notifications/actions/workflows/ci.yml)

Provides simple email notifications for when new visitor comments are posted.

Installation
------------

[](#installation)

```
composer require silverstripe/comment-notifications
```

Configuration
-------------

[](#configuration)

To configure the default email address to receive notifications, place this in your `mysite/_config.yml`

```
SilverStripe\Control\Email\Email:
  admin_email: 'will@fullscreen.io'
```

Check out the [CommentNotifiable](src/Extensions/CommentNotifiable.php) class for the list of options you can override in your project.

### Configuring Recipients

[](#configuring-recipients)

To define who receives the comment notification define a `updateNotificationRecipients` method and modify the list of email addresses.

**mysite/code/CommentNotificationExtension.php**

```
