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.

web form for webmail

Discussion in 'E-mail Discussions' started by khoonchee, Aug 19, 2003.

  1. khoonchee

    khoonchee Well-Known Member
    PartnerNOC

    Joined:
    Oct 2, 2002
    Messages:
    134
    Likes Received:
    0
    Trophy Points:
    16
    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:
     
  2. WhiteCollar

    WhiteCollar Member

    Joined:
    Mar 22, 2003
    Messages:
    20
    Likes Received:
    0
    Trophy Points:
    1
    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. tAzMaNiAc

    tAzMaNiAc Well-Known Member

    Joined:
    Feb 16, 2003
    Messages:
    559
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Sachse, TX
    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. cyon

    cyon Well-Known Member
    PartnerNOC

    Joined:
    Jan 15, 2003
    Messages:
    320
    Likes Received:
    0
    Trophy Points:
    16
    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. griever64

    griever64 Registered

    Joined:
    Jul 8, 2009
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    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
     
    #5 griever64, Jul 8, 2009
    Last edited: Jul 8, 2009
Loading...

Share This Page