enda_001 Posted February 24, 2004 Posted February 24, 2004 Hi, Since my network blocked port 2095 I need to use SquirrelMail to check my mail. I try the embedded login code on: http://www.totalchoicehosting.com/help/id98.htm But it's not working, can someone help tell me which part of that code need to be change and to what. Thanks. Code: <head> <script language="JavaScript" type="text/javascript"> <!-- function squirrelmail_loginpage_onload() { document.forms[0].js_autodetect_results.value = '1'; } // --> </script> </head> <form method="post" action="http://your.host.com/mail/src/redirect.php"> <input type="hidden" name="js_autodetect_results" value="0"> User: <input type="text" name="login_username" size="10"> Password: <input type="password" name="secretkey" size="10"> <input type="submit" value="Login"> </form> Quote
DarqFlare Posted February 24, 2004 Posted February 24, 2004 (edited) Alrighty. I've got Squirrel's Embedded Login working. Here's what's up. You have the line: ><form method="post" action="http://your.host.com/mail/src/redirect.php"> Make sure to change the part http://your.host.com/mail/src/redirect.php to your domain. I.e., http://www.totalchoicehosting.com/mail/src/redirect.php Edited February 24, 2004 by TCH-Robert Quote
enda_001 Posted February 24, 2004 Author Posted February 24, 2004 Thansk for helping Robert But it's still not working. I am putting the embedded login on one of my subdomain http://webmail.subdomain.com Should that be a problem? Furthermore, I have notices that there is no "mail" directory under my "public_html" directory, which I think this link goes to: http://www.totalchoicehosting.com/mail/src/redirect.php The "mail" directory is at the same level with "public_html" directory, is it suppose to be like that? Quote
enda_001 Posted February 25, 2004 Author Posted February 25, 2004 Found the answer The correct URL to change is (at least in my case): http://your.host.com/sqmail/src/redirect.php Not http://your.host.com/mail/src/redirect.php Thanks for the big help, everybody has giving me on this forum. Now, if just somebody can help my problem that I posted on "CPanel and Site Maintenance" forum. Quote
DarqFlare Posted February 25, 2004 Posted February 25, 2004 (edited) Wow.. I wonder how mine works without the sq... Maybe it does... I'l have to take a look. {Edit} Mine shows sqmail/ Maybe I messed it up. Edited February 25, 2004 by TCH-Robert Quote
Alan Posted February 26, 2004 Posted February 26, 2004 Rather than making a new topic for this, I am going to just post it in here to save space. I have my sqmail embedded into my site, but when I try to login the Login Box for like going to "http://****/webmail" pops up after I click login. But when I login the script gives me this error: ERROR Unknown user or password incorrect. Go to the login page But when I click the "Go to the login page" it works fine, and when my friends go to their accounts using the script, they said it works fine for them. My Script looks like this: <form method="post" action="http://www.tinywizard.net:2095/3rdparty/squirrelmail/src/redirect.php"> <input type="hidden" name="js_autodetect_results" value="0"> User: <input type="text" name="login_username" size="10"> Password: <input type="password" name="secretkey" size="10"> <input type="submit" value="Login"> </form> I have taken the Javascript coding off, and it still works without it. But it seems as though I am the only one getting this error. Any suggestions as to what I am doing wrong, and how to fix it, would be a huge help. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.