View Full Version : E-mail notification to admin when resellers add an account
vandal
01-24-2004, 04:30 AM
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)
S2S-Robert
01-24-2004, 05:00 AM
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.
vandal
01-24-2004, 05:18 AM
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.
DirectAdmin Support
04-19-2005, 10:34 AM
Hello,
You can create a script in
/usr/local/directadmin/scripts/custom/user_create_post.sh
Example user_create_post.sh:
#!/usr/local/bin/php
<?
$email = "your@email.com";
$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
Powered by vBulletin™ Version 4.0.4 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.