Take the 2-minute tour ×
Drupal Answers is a question and answer site for Drupal developers and administrators. It's 100% free, no registration required.

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.

share|improve this question
    
Which version of Drupal are you running? –  msanford Nov 13 '12 at 18:06
    
Possibly dup of drupal.stackexchange.com/questions/3070/… –  Ayesh K Apr 25 '13 at 0:47
    
That one seems to refer to the e-mails sent to the registrants, not the site admins. –  Johnathan Elmore Apr 29 '13 at 13:31
add comment

1 Answer

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;
  }
}
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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