O'Reilly logo

Drupal 7 Cookbook by Dylan James

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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:

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required