Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 5 of 5
  1. #1
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Oct 2002
    Posts
    136

    Default web form for webmail

    Hi,

    Is it possible to place a form in website in order to have users to access their webmail? It doesn't matter which webmail rather than using the domain.com/webmail or domain.com:2095

    THanks !

    cPanel.net Support Ticket Number:
    Best Regards,


    Andy

  2. #2
    Member
    Join Date
    Mar 2003
    Posts
    20

    Default RE: web form for webmail

    Dear khoonchee,

    Yes, you can access webmail from an hyperlink placed in any html file.

    Place this sample code in your index.html file to access mail using horde:

    <a href=\"http://yourdomain:2095/horde/index.php\">
    Mail</a>

    Regards,

    cPanel.net Support Ticket Number:

  3. #3
    Member
    Join Date
    Feb 2003
    Location
    Sachse, TX
    Posts
    567

    Default

    WhiteCollar:

    I don't think you read it correctly.

    He must have wanted to do a login somewhere on his page, which would then "auto populate" and login into the desired webmail.

    Brenden

    cPanel.net Support Ticket Number:

  4. #4
    cPanel Partner NOC cPanel Partner NOC Badge cyon's Avatar
    Join Date
    Jan 2003
    Posts
    323

    Default

    here u go:

    Code:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <html>
    <head>
    <title></title>
    <script language="javascript"> 
    <!-- Begin
    function Login(form) {
    var username = form.username.value;
    var password = form.password.value;
    var server = form.server.value;
    if (username && password && server) {
    var mail = "http://" + username + "+" + server + ":" + password + "@" + server + ":2095/horde/index.php";
    
    window.location = mail;
    }
    else {
    alert("Please enter username and password.");
       }
    }
    //  End -->
    </script>
    
    <link href="../css/style.css" rel="stylesheet" type="text/css">
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <body>
    <form name=login>
      <table border=0 cellpadding=5 cellspacing="0">
       
        <tr> 
          <td class="text">Username:</td>
          <td> <input type=text name=username size=15 maxlength="26"> <span class="text">@</span> 
            <input type="text" name="server" maxlength="65" size="15"> </td>
        </tr>
        <tr> 
          <td class="text">Password:</td>
          <td> <input type=password name=password size=20> </td>
        </tr>
        <tr> 
          <td colspan=2> <input type=button value="Login" onClick="Login(this.form)" name="button"> 
          </td>
        </tr>
      
      </table>
     
    </form>
    
    </body>
    </html>
    cPanel.net Support Ticket Number:

  5. #5
    Registered User
    Join Date
    Jul 2009
    Posts
    1

    Default

    hey nice post anyway i got question...im very new with some webform stuff i would appreciate your help if you could explain more on were to put the information needed like mail domain etc...

    also i just want to have

    Username:
    Password:

    without the "@" in between.

    i also want to replace "horde" to "roundcube"

    // Thanks in advance
    Last edited by griever64; 07-08-2009 at 05:04 PM.

Similar Threads & Tags
Similar threads

  1. Sign Up form for Webmail
    By bigtreeworld in forum cPanel Developers
    Replies: 6
    Last Post: 04-26-2011, 10:15 AM
  2. Sign Up form for Webmail
    By bigtreeworld in forum E-mail Discussions
    Replies: 0
    Last Post: 04-11-2011, 09:27 PM
  3. web form / Wordpress spam blacklist
    By zosorock in forum cPanel and WHM Discussions
    Replies: 5
    Last Post: 06-26-2009, 05:12 PM
  4. email() Not working VIA web form
    By Lestat in forum cPanel and WHM Discussions
    Replies: 15
    Last Post: 04-12-2008, 10:32 AM
  5. WebMail Login from my own form.....
    By tealmad in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 02-10-2005, 01:58 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube