When a new user registers, there's an email sent to the admin in the form:

Subject: Account details for [name] at [site name] (pending admin approval) Message: [Name] has applied for an account. [profile URL]

How can I remove this email alert? The reason being, that I've created a customised message triggered by the Apply for role module. Thanks.


1 Answer 1


This email is not configurable via the UI.

You can use hook_mail_alter(), which will allow you to stop the sending of a message. So you would create a custom module that does this:

 * Implements hook_mail_alter().
function MODULE_NAME_mail_alter(&$message) {
  // Stop the default drupal email that goes out to admins when a user
  // registers on the site. An alternative email is sent out via other means.
  if ($message['key'] == 'register_pending_approval_admin') {
    $message['send'] = FALSE;

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.