Drupal is a registered trademark of Dries Buytaert
Paragraphs 8.x-1.22 Minor update available for module paragraphs (8.x-1.22). Views Bootstrap 5.5.2 Minor update available for module views_bootstrap (5.5.2). Emulsify Tools 2.2.0 Minor update available for module emulsify_tools (2.2.0). amazee.ai Private AI Provider 1.3.4 Minor update available for module ai_provider_amazeeio (1.3.4). highlight.js Input Filter 2.0.0 Major update available for module highlightjs_input_filter (2.0.0). Webform QR Code Element 1.4.0 Minor update available for module webform_qr_code_element (1.4.0). REMP Paywall 2.0.1 Minor update available for module remp (2.0.1). oEmbed Providers 2.2.4 Module oembed_providers updated after 7 months of inactivity (2.2.4). CRM - Contact Relationship Management 1.0.0-beta11 New beta version released for module crm (1.0.0-beta11). REMP Paywall Module remp now has official Drupal security advisory coverage.

This module sends email notifications when files with specific extensions are uploaded to your Drupal site. You can configure which file types trigger an email, who receives the notifications, and what the email subject and message say, including placeholders for the file URL and the uploader's username.

Introduction

Media/Document Notifier sends email notifications when files with configured extensions are uploaded to a Drupal site. The module supports Drupal 10 and Drupal 11.

Features

  • Configure allowed file extensions such as pdf and docx.
  • Configure one or more notification recipients.
  • Customize the notification subject and plain-text message.
  • Use [file_url] and [current-username] placeholders in the message body.
  • Restrict configuration access with the administer media document notifier permission.

Installation

composer require 'drupal/medianotify:^1.0'
drush en custom_email_notify

Configuration

  1. Grant administer media document notifier only to trusted administrator roles.
  2. Go to Configuration > System > Email Notify Settings.
  3. Enter allowed file extensions without dots.
  4. Enter comma-separated recipient email addresses.
  5. Save the notification subject and message.

Security and maintenance

The module validates configured file extensions and recipient email addresses. Email subjects cannot contain line breaks. Configuration access is protected by a dedicated restricted permission. The project includes Drupal GitLab CI configuration and is maintained for Drupal 10 and Drupal 11.

License

This project is licensed under GPL-2.0-or-later.

Activity

Total releases
3
First release
Jun 2026
Latest release
2 weeks ago
Releases (12 mo)
3 ▲ from 0
Maintenance
Active

Release Timeline

Releases

Version Type Release date
1.0.6 Stable Jul 14, 2026
1.0.5 Stable Jun 18, 2026
1.0.3 Stable Jun 18, 2026