Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Solved: 10 Years, 8 Months ago Duplicate registration random password email to admin
#1
Solved: 10 Years, 8 Months ago
I know this is a core edit,

but When a member registers and I have my ACP set to --> send random password on registration.

How can I send it to the Super Admin email as well?

Figured it out, if anyone is interested:

Obviously you could make a plug for this and probably should

but for core, its adding 1 line of code to member.php

around line 280 find

my_mail($user_info['email'], $emailsubject, $emailmessage);

Directly after that line add:

 my_mail($mybb->settings['adminemail'], $emailsubject, $emailmessage);

This will send your admin mail account the copy of the random login and password.

I actually changed the the $emailsubject to include the account name so I could archive the emails for reference.


Forum Jump:


Users browsing this thread: 1 Guest(s)