How to Pass Username and Password to WebMail from Another Web Page
Sometimes you will want to allow users to login to your own portal and you want to allow him/her to view WebMail without any additional logging. You can do that by simply passing the logging credentials in the URL.
The link you can use should look something like this:
http://yourIP:port/mail/login.html?username=user&password=pass
Substitute yourIP by the IP address or hostname on which you are running Merak Mail Server, port by the Control port (on which the WebMail is running), user and pass by the actual username and password of user.
Below is a sample of the HTML source code of a form which can pass the login & username to the login.html page too. You can place it on your own page and edit it according to your need in any way.
<form name="login" method="post" action="login.html">
<div id="loginimg">Form to logon to IceWarp WebMail</div>
<div class="pad10"><div class="centered"></div>
<div class="pad10">
<div class="formheight">
<span class="longspan">User Name </span>
<INPUT class="inormal" id="log1" TYPE="text" NAME="username" VALUE="" >
</div>
<div class="formheight">
<span class="longspan">Password </span>
<INPUT class="inormal" id="log2" class="formitem" TYPE="password" NAME="password" VALUE="">
</div>
</div>
<div class="centered"><INPUT TYPE="submit" NAME="Login_x" VALUE="Login"
CLASS="fr_button"></div>
</form>
The form was designed as the login.html file and would be in the same folder as the file with this form. Otherwise, you will have to change the path.