The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Script for adding email users to a domain?

Discussion in 'E-mail Discussions' started by eger, Apr 13, 2004.

  1. eger

    eger Well-Known Member

    Joined:
    Feb 28, 2003
    Messages:
    128
    Likes Received:
    0
    Trophy Points:
    16
    I was wondering if cpanel uses a script to add email users to a domain?

    The reason I ask is because I am looking to design a module for our billing software so users could purchase email accounts on certain domains. I have an API that can connect via ssh and execute a script with the necessary variables to add the user.

    Is this possible?

    Thanks!
     
  2. geomir

    geomir Member

    Joined:
    Mar 17, 2004
    Messages:
    12
    Likes Received:
    0
    Trophy Points:
    1
  3. whiteadi

    whiteadi Registered

    Joined:
    Apr 19, 2004
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Timisoara,Romania
  4. geomir

    geomir Member

    Joined:
    Mar 17, 2004
    Messages:
    12
    Likes Received:
    0
    Trophy Points:
    1
    Sent it

    Check your e-mail :) I sent it.
     
  5. whiteadi

    whiteadi Registered

    Joined:
    Apr 19, 2004
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Timisoara,Romania
    Re: Sent it

    Thanks, I got it now, I will try it...
     
  6. hblair

    hblair Active Member

    Joined:
    Sep 6, 2001
    Messages:
    25
    Likes Received:
    0
    Trophy Points:
    1
  7. trumpetx

    trumpetx Member

    Joined:
    Apr 3, 2004
    Messages:
    23
    Likes Received:
    0
    Trophy Points:
    1
    Could i get a copy as well? tks...

    EDIT EMAIL OUT
     
    #7 trumpetx, Apr 20, 2004
    Last edited: Apr 21, 2004
  8. geomir

    geomir Member

    Joined:
    Mar 17, 2004
    Messages:
    12
    Likes Received:
    0
    Trophy Points:
    1
    Sure :)

    I will send it to you in a couple of hours because I have it in the other PC.

    Peace,
    George
     
  9. tcaetano

    tcaetano Active Member

    Joined:
    May 15, 2003
    Messages:
    39
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Faro > Portugal
    sorry to bother.. but could you send me a copy too?!? :)

    codemaker [at] sapo.pt

    Thanks
     
  10. eger

    eger Well-Known Member

    Joined:
    Feb 28, 2003
    Messages:
    128
    Likes Received:
    0
    Trophy Points:
    16
    i would also like it!

    andy [at] cooplabs.com

    is it for adding email accounts or just users in general?

    does it run on the *NIX cmd line?
     
  11. chican0

    chican0 Well-Known Member

    Joined:
    Mar 26, 2003
    Messages:
    59
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Los Angeles
    /me raises hand too

    Can i get a copy of that script as well? my email is sal [at] outdone.net


    I would really appreciate it! :D
     
  12. suiso

    suiso Registered

    Joined:
    Mar 28, 2004
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Does this script check to make sure you have no dupes? I had to use a MySQL DB with all the usernames in it and when someone requested an account it would check the DB before it passed the URL string
     
  13. isputra

    isputra Well-Known Member

    Joined:
    May 3, 2003
    Messages:
    576
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Mbelitar
  14. geomir

    geomir Member

    Joined:
    Mar 17, 2004
    Messages:
    12
    Likes Received:
    0
    Trophy Points:
    1
    Reply to everybody

    Hi :)

    I sent it to everybody, if somebody did not receive it please let me know.

    >>"Does this script check to make sure you have no dupes?"

    :D Yes it actually does!!! Check your add demo, if the function returns the string 'ERROR' it means you tried to enter a duplicate address.

    >>"is it for adding email accounts or just users in general?"

    It is for adding e-mail accounts but you can modify it to add users if you have the whm access key. (you can also use it via *nix through another script)
     
  15. suiso

    suiso Registered

    Joined:
    Mar 28, 2004
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    I might like to take a look at this then. I could even dump my MySQL DB then. Could you email it to me, or post a link would be better so other can check it out too without requesting.

    Ryan
    ryan (at) suiso.com
     
  16. geomir

    geomir Member

    Joined:
    Mar 17, 2004
    Messages:
    12
    Likes Received:
    0
    Trophy Points:
    1
    no need to post your e-mail

    Dear suiso,

    Nobody has to post his/her e-mail, I have written(see above) my e-mail so they can just e-mail me about it.

    If I post the files here I will have problems answering any help requests and I love being able to help.

    Peace,
    George :cool:

    P.S. I e-mailed it to you as well

    P.S 2. It would be better using the forum for any questions etc so that everyone reading it could get benefit (I don't mean you I mean everybody)
     
  17. hblair

    hblair Active Member

    Joined:
    Sep 6, 2001
    Messages:
    25
    Likes Received:
    0
    Trophy Points:
    1
    I didn't get a copy.
     
  18. geomir

    geomir Member

    Joined:
    Mar 17, 2004
    Messages:
    12
    Likes Received:
    0
    Trophy Points:
    1
    mmmm...strange I thought I had send you a copy. No problem I will send it again :D
     
  19. chican0

    chican0 Well-Known Member

    Joined:
    Mar 26, 2003
    Messages:
    59
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Los Angeles
    It might be a good idea to link the ZIP file here. Within the ZIP file, place a README file stating that you will be able to offer assistance via this forum thread and link the thread.

    :)

    Might make the distribution process easier. And assistance could be found easily by refering back to this thread.
     
  20. geomir

    geomir Member

    Joined:
    Mar 17, 2004
    Messages:
    12
    Likes Received:
    0
    Trophy Points:
    1
    Well I was thinking of making it freely available from my site, I am not sure yet what I am going to do. For me it's important to be able to help.

    I have also developed a perl version with many more features, it can even list/add/delete/edit hosting accounts, packages, e-mails pop and forward.
     
Loading...

Share This Page