Add feature to allow email to admin on new account creation.

This commit is contained in:
Retro_Guy 2024-12-18 09:02:00 -07:00
parent 81a72a3225
commit 4ca4b08aac
2 changed files with 13 additions and 0 deletions

View File

@ -748,6 +748,15 @@ function create_new($username, $password, $user_email)
}
echo '<br ><a href="' . $CONFIG['default_content'] . '">Back</a>';
echo '</center>';
$mail_subject = '[' . $_SERVER['HTTP_HOST'] . '] New User Registration ';
$mail_body = 'New user registration on ' . $_SERVER['HTTP_HOST'] . "\n\nUsername: . " . $username . "\n\nEmail: " . $user_email;
if(isset($OVERRIDES['send_admin_registration_email']) && $OVERRIDES['send_admin_registration_email'] == true) {
send_internet_email($mail_subject, $mail_body);
} else {
send_admin_message('admin', 'admin', $mail_subject, $mail_body . "\n");
}
}
function make_key($username)

View File

@ -122,6 +122,10 @@ return [
// Default is false
'send_admin_debug_messages' => false,
// Send Admin New Registration Emails
// Default is false
'send_admin_registration_email' => false,
// Disable toggle to send interBBS Mail to email
'disable_mail_to_email' => true,