Setting up a new user notification

In Drupal, there are a number of automatically generated e-mails which are sent to users at specific trigger points; for example, when a user registers, is approved, or is blocked. However, if you are an admin user and want to receive a notification when a user has registered on your site in order to go and approve their account, you need to set this up manually.

In this recipe, we will be using Drupal's native Trigger module to set up an e-mail notification to an admin user when a new user registers.

Getting ready

To complete this recipe you will need to enable the Trigger module, which is available as part of the Drupal core.

You will also need to install and enable the Token module:

Get Drupal 7 Cookbook now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.