Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    Member
    Join Date
    Oct 2003
    Location
    Austin, T E X A S
    Posts
    36

    Default Manually creating new email accounts

    A new project I need to tackle is figuring out how to create new user email accounts manually, without going through cPanel. I want to create them the same way cPanel does, because I want everything to stay compatible with cPanel. It's just that I need a script to create the email accounts automatically, which is why I can't use the cPanel interface.

    If anyone else has accomplished this, or made any progress on it, I'd love to hear from you before I get started. It doesn't sound too difficult, but what may be time consuming is figuring out the locations of all the new/changed files.

    Thanks,
    Chris

  2. #2
    Member
    Join Date
    Jun 2003
    Posts
    396

    Default

    Does this help

    <?php
    $cpaneluser = "username";
    $cpanelpass = "password";

    // add a new mail account - change to suite
    $quota = "10";
    $password = "password";
    $newemail = "newemail';
    $domain = "yourdomain.com";

    $addpop = "http://$cpaneluser:$cpanelpass@localhost:2082/frontend/$cpaneltheme/mai
    l/doaddpop.html?email=$newemail&domain=$domain&password=$password&quota=$quota";

    $results = fopen($addpop,2);

    ?>
    -Albert

  3. #3
    Member
    Join Date
    Oct 2003
    Location
    Austin, T E X A S
    Posts
    36

    Default

    I will test it, but it sure looks like just the thing I was looking for. The script is all in PHP, so this will fit the bill just perfectly. Thanks so much for posting it!

    Would I, by chance, need to add the $cpaneltheme variable up top, like the user/pass variables?

    Chris
    Last edited by TCSLEA; 12-04-2003 at 01:41 PM.

Similar Threads & Tags
Similar threads

  1. creating email accounts from ssh
    By pasqd3 in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 03-03-2011, 02:41 PM
  2. Can I create exim email accounts manually?
    By ArbuZz in forum E-mail Discussions
    Replies: 12
    Last Post: 11-13-2007, 03:47 AM
  3. Creating email accounts
    By cpaneluser1 in forum E-mail Discussions
    Replies: 3
    Last Post: 04-03-2006, 11:58 AM
  4. Creating FTP/Email Accounts
    By LSS1 in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 08-08-2004, 08:06 PM
  5. Deleting email accounts manually
    By sketchified in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 02-18-2002, 10:22 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube