E-mail notification to admin when resellers add an account

vandal

Verified User
Joined
Oct 22, 2003
Messages
526
Location
Calgary, AB
I would like to know when my resellers are adding an account, preferably in the same method as when i add an account as a reseller. (duplication account notice...etc)
 
If that feature were to be included please make sure it can be disabled. I really don't want to know every user creation my resellers make.
 
i want it because i just added a reseller account for close friends who just mark up my price, so i need to know when they are adding accounts. but yes, give it an enable/disable feature.
 
Hello,

You can create a script in
/usr/local/directadmin/scripts/custom/user_create_post.sh

Example user_create_post.sh:
PHP:
#!/usr/local/bin/php
<?

$email = "[email protected]";

$subject = getenv('creator')." has just created user ".getenv('username');

$message = "This is a notification that ".getenv('creator')." has just created user ".getenv('username')."\n".
"The user has ".getenv('bandwidth')." meg of bandwidth and ".getenv('quota')." meg of disk space.";

mail($email, $subject, $message);
?>
Note, the above wasn't tested, but should give you an idea of what you can do.

Remember to chmod the script to 755 when you're done (or 700).

John
 
Back
Top