The folowing should work with a link of:
webmail.asp?username=XXXXXX&password=YYYYYY
You might want to put in some error checking for empty usernames. Also, this
is not secure as the username and password are passed via cleartext in the
browser. I don't include the password. Instead, I look it up in via a
database call. I supopse you could use a session variable or cookie if you
wanted to.
Listing for webmail.asp
_+_+_+_+_+_+_+_+_+_+_+_+_
<html>
<head></head>
<script language='JavaScript'>
<!--
function submitForm() {document.myform.submit();}
//-->
</script>
<body onLoad='submitForm();'>
<form method='POST' action='http://www.yourmailserver.com:8383/login.cgi'
name='myform'>
<input type='hidden' name='page' value='login'><input type='hidden'
name='userid' value='<%=UserName%>'>
<input type='hidden' name='passwd' value='<%=Password%>'>
</form>
</body>
</html>
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Mike Varre
Sent: Thursday, September 07, 2000 9:34 AM
To: [EMAIL PROTECTED]
Subject: [IMail Forum] Logging into email via link
I want to be able to set my website up so that when my user logs into the
main website, they are logged into email also, or at least so they dont have
to log in again. What I am proposing is that when the user logs into the
website, the website takes the username and password through the use of ASP
and Javascript and it attaches it the the email link on the main page. So
that when the user clicks on the Email link, the link will be somehow
holding the username and password sending it to IMail for authentication
when they click on the Email link.
Is this possible? If so, how?
Michael P. Varre
Project Engineer
www.goChatPlus.com
315-475-0500
Please visit http://www.ipswitch.com/support/mailing-lists.html
to be removed from this list.
An Archive of this list is available at:
http://www.mail-archive.com/imail_forum%40list.ipswitch.com/