Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 7 of 7
  1. #1
    Registered User
    Join Date
    Apr 2011
    Posts
    3

    Smile Sign Up form for Webmail

    Hey everyone,

    What I need is some system (preferrably a form) by which users can create a Webmail account which they can use to login to mysite.com:2096. I want it so that they can't look at the source code and see my cPanel credentials, and it would be nice if there was a anti-robot system involved.

    Thanks a lot in advance

  2. #2
    cPanel Staff cPanelJared's Avatar
    Join Date
    Feb 2010
    Location
    Houston, TX
    Posts
    1,066

    Default Friendly moderator note

    I moved this thread to our Developer Discussions section.
    For hands-on assistance, please reference our new support information page: Where should I go for support?
    cPResources: Support Options - Submit a ticket here - Additional Support Options - Forums Search - Mailing Lists(Alt) - Documentation


    -- Jared Ryan, Technical Analyst, cPanel Technical Support

  3. #3
    Registered User
    Join Date
    Apr 2011
    Posts
    3

    Default Re: Sign Up form for Webmail

    Thanks. Anybody have any ideas?

  4. #4
    Member
    Join Date
    Jul 2010
    Posts
    22

    Default Re: Sign Up form for Webmail

    How proficient are you with PHP and HTML? The way I would set it up is create a form with the username and password fields, plus a CAPTCHA-type entry to prevent bots. Here's a good free CAPTCHA script:
    Securimage PHP Captcha****|****Free Captcha Script

    The form should post to a script that uses the cPanel API to create the mail account. This part requires quite a bit of programming knowledge to set up and make the API call and then parse the returned data, but luckily the cPanel guys have done a really good job on their end with the API that takes a lot of the pain out of things like validation and checking to see if there's already an existing account with the entered name. If there are any errors the API will return detailed info, otherwise it will just set up the account and return a success message.

    Once that script finishes it should return the result to the user. This could be done with a header redirect or you could have the whole thing flow smoothly with AJAX so the user never leaves the form page...There are ton of ways you could set it up.

    So in a nutshell:
    User fills out signup form > Values are posted to a script that makes the API call > Script returns the error or success message to the user > Once the account is successfully created the user can log in at your webmail link

  5. #5
    Registered User
    Join Date
    Apr 2011
    Posts
    3

    Default Re: Sign Up form for Webmail

    Thanks. Now, is there a simple API explanation or something that can introduce me to the cPanel API, especially when it comes to email? (The simpler the better)

  6. #6
    cPanel Staff cPanelJared's Avatar
    Join Date
    Feb 2010
    Location
    Houston, TX
    Posts
    1,066

    Default Re: Sign Up form for Webmail

    All of our API documentation, including links to basic introductory material, is available here:

    cPanel & WHM's SDK

    Please let us know if you have any specific questions, and we will do our best to help you.
    For hands-on assistance, please reference our new support information page: Where should I go for support?
    cPResources: Support Options - Submit a ticket here - Additional Support Options - Forums Search - Mailing Lists(Alt) - Documentation


    -- Jared Ryan, Technical Analyst, cPanel Technical Support

  7. #7
    Integration Developer cPanelDavidN's Avatar
    Join Date
    Dec 2009
    Location
    Houston, TX
    Posts
    525

    Default Re: Sign Up form for Webmail

    You might read this blog post, it's fairly short and should be a good jumpstart before you go diving into the full documentation that Jared referenced:

    Introduction to cPanel & WHM APIs - cPanel Integration

    -DavidN
    David Neimeyer
    Integration Developer

    sdk.cpanel.net
    APIs: XML-API API1 & API2
    Check Out: Developer Downloads Integration Blog
    Need Support? Support Ticket Developer Forum Feature Request

Similar Threads & Tags
Similar threads

  1. Sign Up form for Webmail
    By bigtreeworld in forum E-mail Discussions
    Replies: 0
    Last Post: 04-11-2011, 09:27 PM
  2. Sign up form
    By damo2k7 in forum New User Questions
    Replies: 1
    Last Post: 12-10-2007, 10:37 AM
  3. webmail auto sign up?
    By dcpr in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 09-11-2005, 07:28 PM
  4. new account sign-up form
    By DexionMedia in forum New User Questions
    Replies: 2
    Last Post: 05-15-2005, 02:59 PM
  5. Automated Sign Up Form...
    By Nagaki in forum cPanel and WHM Discussions
    Replies: 23
    Last Post: 08-05-2003, 08:28 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube