MyBB Community Forums

Full Version: Duplicate registration random password email to admin
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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.