Login methods
There are many ways to setup WebMail to login your users. This only shows the most commonly used options. For a larger list of login options you should see the link
 
http://netwinsite.com/webmail/admin.htm#setup
 
My Own HTML Page
Setting up a separate HTML page on your site which logs the user into WebMail is the most common thing our clients do.
 
You need to first add 1 ini setting within WebMail, which is:
 
no_tcode true
 
Then all you need to do is setup a form for the users to enter their username/password which then logs the user into WebMail. Below is a simple login form that you can add to your HTML pages.
 
<form name="login" method="POST"
	action="http://your.domain.com/cgi-bin/webmail.cgi">
<input type="hidden" name="cmd" value="login">
<input type="hidden" name="frames" value="on">

<input type="text" name="user" value="">
<input type="text" name="pass" value="">
</form>
 
Pulldown Mail Hosts
With WebMail you can setup a pulldown menu on the login page for the user to select which mail server they wish to use. This can also include if they wish to use IMAP or POP.
 
Let's say you have 3 mail servers (domain1.com, domain2.com and domain3.com) that you want your users to select which they wish to connect to. To do this on the login.tpl you need to add the following tpl code in the 'form' on this page.
 
<select name="host">
<option value="mail.domain1.com:110">domain1.com (POP)</option>
<option value="imap.domain2.com:143">domain2.com (IMAP)</option>
<option value="domain3.com:143">domain3.com (IMAP)</option>
</select>
 
Once you have done this you should then also add the following ini setting to WebMail to allow the users to use the above mail hosts.
 
valid_host mail.domain1.com
valid_host imap.domain2.com
valid_host domain3.com