Admin email notifcation of new user registration

bigvortex - September 15, 2009 - 15:18

I must have missed it but I have searched through the forms and notification modules to find a way to have an email sent to me when someone requests an account. Currently I have the account creation set up to where the account has to be approved. The only way for me to see if someone request one is to go to the admin->users page. I don't want to have to monitor that manually. This seems like a pretty basic use case so I am surprised I don't see an obvious way to implement it.

Are you running a cron job on

elf_cash - September 15, 2009 - 15:44

Are you running a cron job on a new user registration? Try running it manually to see if you receive the email, if you do, then you can set the job up to run however often you like.

Why should we need a cron

bigvortex - September 15, 2009 - 16:00

Why should we need a cron job? The system fires off an email to the new user, why can't it fire off one to the admin?

Download and enable the rules

lipcpro - September 15, 2009 - 17:56

Download and enable the rules, rules admin UI, and rules scheduler modules, set the permission to administer the module, and enable the trigger module. Go to /admin/settings/actions/manage and under the heading "Make a new advanced action available" select "send an email" and click "Create". Give the new action a description like "New user registration notification", set the recipient, subject and message. Then go to /admin/rules/trigger/add and give the new rule a sensible label, under "event" select "User has created a new account", give it a category if you like and click save changes. You don't have to add a condition or action to this as it will trigger the proper action. This setup works well for me but if you'd like an easier alternative take a look at the User Notify Register module.

HTH
lipcpro

I knew there had to be a

bigvortex - September 15, 2009 - 18:20

I knew there had to be a module for that. I just couldn't find it with my search. Thanks for the info. I will try the easy path first and if that doesn't work I really appreciate you laying out the steps to implement it the other way.

one more thing to do

lipcpro - September 15, 2009 - 18:26

forgot one step in the process, you have to assign the trigger.
Go to /admin/build/trigger/user and under "Trigger: After a user account has been created" choose action select the system/send email and click assign.

HTH
lipcpro

_

WorldFallz - September 15, 2009 - 20:19

I love the rules module, but you actually don't need it for this. Enable the core trigger module, setup an advanced action to email to the desired address, then setup a user trigger to fire when a new user account has been created and you'll receive the email as soon as the user requests the account. If you use the token module, you should be able to use tokens in the email for adding info.

_
Don't be a Help Vampire - read and abide the forum guidelines.
If you find my assistance useful, please pay it forward to your fellow drupalers.

Great! I just implemented

bigvortex - September 15, 2009 - 23:05

Great! I just implemented this solution and it works perfect for my needs. I like this because it doesn't require installing another module. Thanks for all the feedback.

Huh?

upperholme - November 6, 2009 - 02:11

when a user signs up for an account in the case where admin approval is required, an email gets automatically fired to the address given as the email address in admin/settings/site-information. This is in itself potentially a bit odd, as one might expect this email to go instead to the address for user 1.

So, if your case fits this, then simply ensure that any mails sent to the site information address reach your inbox and you are away.

new user registration notification

frock - December 8, 2009 - 04:16

i did this - set up the trigger & the action ... registered a new test user ... no email notification; checked that i hadn't made a typo in the email address - no. waited a bit, still no email. what am i missing?

(it's a pretty huge gap that something like this is not already built in to the system.)

_

WorldFallz - December 8, 2009 - 14:53

Do you have cron configured properly? iirc, emails are sent with cron.

_
Don't be a Help Vampire - read and abide the forum guidelines.
If you find my assistance useful, please pay it forward to your fellow drupalers.

as far as i'm aware, cron is

frock - December 12, 2009 - 04:03

as far as i'm aware, cron is configured properly; other stuff like group emails getting sent out are happening as they should.

where should i look to check this? (i find navigating the back-end pretty confusing)

I'm trying to do this as well

dan.crouthamel - December 23, 2009 - 03:40

I'm trying to do this as well with just action/triggers/token, and not the user registration notification module. I'm getting emails, and sending something simple like this.

[user] has registered on the site.

[mail] - [account-url]

However, the tokens aren't being replaced :(

 
 

Drupal is a registered trademark of Dries Buytaert.