-
Hi,
I am trying to make a program, which inputs the users hotmail login name and password through a standard text box and log the user on to the hotmail server. And then show the contents of his mailbox in a web browser control. Anyone knows how to do that?
-
-
Code:
WebBrowser1.Navigate "http://www.hotmail.com/"
'I thin the problem was in the readystate stament.
Do Until WebBrowser1.ReadyState = READYSTATE_COMPLETE
DoEvents
Loop
WebBrowser1.Document.Forms(0).login.Value = Text1.Text
WebBrowser1.Document.Forms(0).passwd.Value = Text2.Text
WebBrowser1.Document.Forms(0).proceed.Click
That will send the values of the textboxes to the webbrowser control. And click the login button. Then the inbox will be displayed.
Hope that helps,
D!m
-
Dim, i dont want to show the hotmail login page, just to save time, this is the main purpose of my program.
-
What you do is this...
Step 1: Go to their site with internet explorer (Just as if your browsing) Open the source code and copy their entire form and paste it into an empty html document on your hard drive!
Step 2: You make your program's browser load this page off your hard drive (Which is about 1 million times faster than internet!) and then you make it fill in the blanks just like dim showed you but the last line should be instead of all that WebBrowser1.Document.Form(0).Proceed.Click crap type in the following: WebBrowser1.Document.Form(0).Submit
That works better and I have tried it many times!
-
You may have to change any relative references in the page to absolute. Maybe.
-
thanks for the tips people.
-
oetje, the hotmail checker doesn't show anything in the list even if I got 1 new mail? Is that i have to change the preferences or something or do you get anything in the list except for "from: subject:"