I was wondering how to change the standard text in the email send to the administrator when a new user has registered.

Is there a way to change the text? Maybe the same way as you can change the emails send to the user when registered?


3 Answers 3


Unlike normal users there's is no UI to change the text of the message sent to administrator on account creation.

You could implement hook_mail_alter(), to achieve this via a custom module:

function MODULE_mail_alter(&$message) {
  if ($message['id'] == 'user_register_pending_approval_admin') {
    //$message['body'] is the array you want to change.
    $message['body'][] = 'Your custom message for admin goes here.....';
  • Thanks! I will try this one. Do you also know how to put some shorthand code for the fields that are used? I created extra fields like: name, address etc..
    – Ziggy
    Commented Mar 14, 2013 at 11:19
  • @Ziggy You can do that from the values from $message['params'] array. I've posted a similar solution some time ago. You can check it.
    – AjitS
    Commented Mar 14, 2013 at 11:27

The Mail Edit module allows you to alter mail templates including the one you mention, which appears on its list with the key "register_pending_approval_admin".


One way is to use the rules module

You create an action (send an email) on a user creation event

  • 3
    OP wants to change the text of the mail which is sent by default by the user module on account creation; and don't want to send another mail.
    – AjitS
    Commented Mar 12, 2013 at 13:47

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.