"Notifies administrator of new user registrations."

But it not sends mail to administrator rather then to site_mail address. In my case it wasn't the same, so I didnt't get any message about new registrations. So please correct it. TIA

Comments

doq’s picture

Who is administrator? Account #1 you mean?

tfejos’s picture

Yes, I mean account #1.

doq’s picture

Category: bug » feature
Status: Active » Postponed (maintainer needs more info)

1. What to do if user #1 don't want to receive e-mails?
2. Lets go to user.module:

  $from = variable_get('site_mail', ini_get('sendmail_from')); 
      drupal_mail('user-register-approval-admin', $from, $subject, t("!username has applied for an account.\n\n!edit_uri", $variables), $from); 

The code above means that user registration approval request is sent to site_mail. So why do we need to change it to user #1 in our module?
3. Sounds like a task for some other module, an extension to user_register_notify module.

tfejos’s picture

I'm afraid, I wasn't exact enough.
Your module is good as it is.

But please mention in description that it will send mail to site_mail, not to user #1.
It was not trivial to me from the description.
It's absolutely works good, but I needed to know why I don't get notification mails.

doq’s picture

Assigned: Unassigned » doq
Status: Postponed (maintainer needs more info) » Active

Now I do understand. Thanks.

rmiddle’s picture

Assigned: doq » rmiddle
Status: Active » Fixed

tfejos

Fixed. Is that good enough.

Thanks
Robert

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.