log into email from website

log into email from website

Posted by: lovemywebsite
Posted on: 2002-07-27 11:58:00

I am working on http://www.myhorseshoes.com and instead of using a link to the webmail panel, is there a way to allow users to login directly to their email from the web site page. If there is, how would I do this?

I use an outside host for my email which allows me to have this: http://www.lovemywebsite.com and I would like to do this with the above site but using the email service provided by DreamHost.

Thanks very much for your time and feedback!

Leah :)


Leah :)

Re: log into email from website

Posted by: vrillusions
Posted on: 2002-07-30 21:01:00

well a quick "view source" on mine returned the following code:

<FORM ACTION="redirect.php" METHOD="POST">
<!--<CENTER> <IMG SRC="../images/sm_logo.png" ALT="Dreamhost SquirrelMail Logo"><BR>
<SMALL>SquirrelMail version 1.2.7<BR>
By the SquirrelMail Development Team<BR></SMALL>
</CENTER>
<CENTER>
<TABLE COLS="1" WIDTH="350">
<TR><TD ALIGN=CENTER BGCOLOR="#DCDCDC">
<B>Dreamhost SquirrelMail Login</B>
</TD></TR> <TR><TD BGCOLOR="#FFFFFF"><TABLE COLS=2 WIDTH="100%">
<TR>
<TD WIDTH="30%" ALIGN=right>Name:</TD>
<TD WIDTH="*" ALIGN=left>
<INPUT TYPE=TEXT NAME="login_username" VALUE="">
</TD>
</TR>
<TR>
<TD WIDTH="30%" ALIGN=right>Password:</TD>
<TD WIDTH="*" ALIGN=left>
<INPUT TYPE=PASSWORD NAME="secretkey">
<INPUT TYPE=HIDDEN NAME="js_autodetect_results" VALUE="0">
<INPUT TYPE=HIDDEN NAME="just_logged_in" value=1>
</TD>
</TR>
</TABLE></TD></TR>
<TR><TD>
<CENTER><INPUT TYPE=SUBMIT VALUE="Login"></CENTER>
</TD></TR>
</TABLE>


Now if you strip away all the formating and stuff, you get this:

<FORM ACTION="http://webmail.YOURDOMAIN.COM/src/redirect.php" METHOD="POST">
<INPUT TYPE=HIDDEN NAME="just_logged_in" value=1>
Name: <INPUT TYPE=TEXT NAME="login_username" VALUE="">

Password: <INPUT TYPE=PASSWORD NAME="secretkey">
<INPUT TYPE=SUBMIT VALUE="Login"></form>

make sure to change YOURDOMAIN and try it out. Not sure if it will work or not.

Re: log into email from website

Posted by: DebbyP
Posted on: 2008-02-17 10:54:00

Quote:
Now if you strip away all the formating and stuff, you get this:
<FORM ACTION="http://webmail.YOURDOMAIN.COM/src/redirect.php" METHOD="POST">
<INPUT TYPE=HIDDEN NAME="just_logged_in" value=1>
Name: <INPUT TYPE=TEXT NAME="login_username" VALUE="">
Password: <INPUT TYPE=PASSWORD NAME="secretkey">
<INPUT TYPE=SUBMIT VALUE="Login"></form>
make sure to change YOURDOMAIN and try it out. Not sure if it will work or not.
/Quote

I don't know about you but I wracked my brain, searched the web, contacted support and finally came up with the answer by happenstance. I was trying to figure out how to modify the code so that any of my clients could access their email from my website and thought that I had to come up with a way to automatically change the "YOURDOMAIN.COM" in the above code to match the clients domain. Took me 2 days to figure out that all that I needed to do was to change "YOURDOMAIN.COM" to dreamhost.com. So this is what I changed it to:

<FORM ACTION="http://webmail.dreamhost.com/src/redirect.php" METHOD="POST">
<INPUT TYPE=HIDDEN NAME="just_logged_in" value=1>
Email Address: <INPUT TYPE=TEXT NAME="login_username" VALUE="">
Password: <INPUT TYPE=PASSWORD NAME="secretkey">
<INPUT TYPE=SUBMIT VALUE="Login"></form>

Worked like a charm! Verified it with support that it was ok, it was. Hope this helps anyone else that might be running into this problem.

Tags: email serviceleahdreamhostwebmailfeedbackhttpweb site