Cover by Dylan James

Safari, the world’s most comprehensive technology and business learning platform.

Find the exact information you need to solve a problem on the fly, or go deeper to master the technologies and skills you need to succeed

Start Free Trial

No credit card required

O'Reilly logo

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:

Find the exact information you need to solve a problem on the fly, or go deeper to master the technologies and skills you need to succeed

Start Free Trial

No credit card required