11

Administrator is not notified when a user registers on my D7 site, while the registrants do receive a message. On the D6 version of the site it worked. Here's the setup:

  • Drupal 7.10
  • User registration is upon admin approval.
  • Contact users works.

I can't find a flag anywhere to turn on notification to administrator. Google search and search on this site has not turned up a solution. Is this capability in core, how do I turn it on. Do I have to use additional module?

Thanks.

3 Answers 3

24

First, go to /admin/config/system/actions. In the section "Create an advanced action", choose "send an email" and click on "create". It takes you to a page where you need to enter a recipients email address, (enter the Administrator's email address here), subject and message. Click Save.

Second, go to /admin/modules and enable the Trigger module.

Third, go to /admin/structure/trigger/user. In the Section "Trigger: After creating a new user account" Choose "Send e-mail" in the select box. Click Assign.

Example Message:

A user has created an account.

Details:
 - Username: [user:name]
 - Email: [user:mail]
 - Time: [user:created:long]

Activate their account by going here: [user:edit-url]
5
  • aerozeppelin, Thanks for your instructions. Perfect. Configured and tested; works great. For me, it was also a small tutorial on actions and triggers; gave me ideas. Again, many thanks.
    – ryz
    Commented Feb 2, 2012 at 0:45
  • @MPD, Thanks for the reminder. I am a StackExchange newbie.
    – ryz
    Commented Feb 2, 2012 at 5:16
  • 5
    It is required that you first enable the module Trigger at admin/modules
    – batigolix
    Commented Feb 17, 2014 at 9:02
  • @aerozeppelin Maybe mention the need to enabled the Trigger module in your answer. I also stumbled across this problem, like batigolix.
    – kontur
    Commented Oct 1, 2015 at 7:55
  • How can this functionality be used to set multiple recipients ?
    – AkiShankar
    Commented Dec 4, 2015 at 11:59
11

Although this is an old question, I just found it in a search, and found that the suggested approach, though excellent, does not work with Tokens.

If you want the administrator to be sent an email that contains some or all of the fields that you have attached to your user account: eg something like:

[account:field-contact-name] has created an account. Details submitted: [account:field-business-name]

Use Rules module which offers a nice simple tokenised email approach.

Once you have installed Rules, from /admin/config/workflow/rules, add a new rule.

1) Add an event : After saving a new user account

2) Add an action: Send Mail

3) In the message body, choose your tokens from the Replacement Patterns dropdown and save your new Rule.

4) test, and rejoice at how lovely Rules is.

0
2

User registration workflow (pending email to "site admin" and "user" --> approve by "site admin" then confirmation email to the user) is a default (core) system of drupal.

From Admin > Configuration > People > Account Settings page, set Red-marked option of the attached image.

enter image description here

Note: You can set email content (message) in the E-mail section from bottom of the same account setting page.

enter image description here

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.