Reply to topic
Posting Login information to gain Webmail Access
jamie
HostMySite Sales Rep
HostMySite Sales Rep

Joined: 19 Mar 2004
Posts: 764
Location: Newark, De
Reply with quote
One of our clients has just inquired about code that would automatically log you into webmail. We don't have any examples of this, nor have I ever seen it done on our network, so I thought I might post here and see if anyone has coded anything like it.

Specifically, here's what would be required:

the ability to click on a link that takes the browser directly into the webmail interface at their domain name. I *think* this can be done via an http post of the login and password information?
Posting Login information to gain Webmail Access
sforker


Joined: 27 Apr 2004
Posts: 4
Reply with quote
Does this get you what you need ????
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
  <head>
    <title>Test</title>
  </head>
  <body>
    <form id="Form1" method="post" action="http://mail.DOMAIN.com/login.cgi">
      <input type=hidden name="page" value="login">
      <input type=hidden name="userid" value="root@DOMAIN.com">
      <input type=hidden name="passwd" value="PASSWORD">
      <input type=submit value="Web Mail" name="">
    </form>
  </body>
</html>
FredericLS


Joined: 14 May 2004
Posts: 2
Reply with quote
Exactly what we needed. Thanks.

Frederic
FredericLS


Joined: 14 May 2004
Posts: 2
Reply with quote
Is there any way to check for presence of new email as well as count of emails in INBOX?

Frederic
jamie
HostMySite Sales Rep
HostMySite Sales Rep

Joined: 19 Mar 2004
Posts: 764
Location: Newark, De
Reply with quote
That unfortunately wouldn't be possible. The only web access you have to the Inbox and information contained within is through the webmail interface.
E-Mail
eriweb


Joined: 06 Apr 2004
Posts: 68
Reply with quote
Just curios if there are any plans to have a new e-mail interface or something like that?
jamie
HostMySite Sales Rep
HostMySite Sales Rep

Joined: 19 Mar 2004
Posts: 764
Location: Newark, De
Reply with quote
Our current interface is a product of Ipswitch and comes bundled with Imail Server. We support this on over 30 shared webhosting servers, so we're probably not going to make any significant changes to this offering in the near future.
Bypassing the log-in to get into web mail
getjoel


Joined: 05 Aug 2004
Posts: 1
Reply with quote
I just tried using the code that Jamie posted and got this when accessing that page.. Can someone tell me what I'm doing wrong? Am I supposed to use a Cold Fusion extension or asp or .htm?

Ê Ê Ê Ê Ê Ê Ê
Ê Ê Ê Ê Ê Ê Ê Ê Ê Ê Ê Ê Ê Ê
Ê
Alan
HostMySite Marketing

Joined: 08 Mar 2004
Posts: 126
Reply with quote
You should be able to use the code with any extension, but it is basically an HTML form so I would recommend using .htm or .html

Also within http://mail.DOMAIN.com/login.cgi, make sure to replace mail.DOMAIN.com with your mail server.
jamie
HostMySite Sales Rep
HostMySite Sales Rep

Joined: 19 Mar 2004
Posts: 764
Location: Newark, De
Reply with quote
Anyone have any success with this? I can't try it myself because I'm visiting relatives in the South this week. Pls post here if you can get that code snippet to work.

As a side note, I didn't originally post that - one of our clients did!
Josh Prewitt


Joined: 24 Jun 2004
Posts: 13
Reply with quote
I tested the script and it worked fine for me, I used a .htm extension, but it shouldn't matter.

getjoel, make sure you change the hidden fields to be your domain, username, and password, also, keep in mind that passwords are case sensitive.
dakota


Joined: 18 Oct 2007
Posts: 1
Location: Australia
Reply with quote
Hi guys,

Thanks for that script. When I try it I get this error:

You don't have permission to access /login.cgi on this server.

Can anyone help with this?

Thanks
Josh
Forum Regular

Joined: 01 Apr 2004
Posts: 1020
Location: Felton, Delaware
Reply with quote
They're using SmarterMail now, not iMail.
Posting Login information to gain Webmail Access
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT  
Page 1 of 1  

  
  
 Reply to topic