Important alert: (current site time 7/16/2013 3:36:10 AM EDT)
 

winzip icon

New Hotmail Messages (Checker)! *THE ORIGINAL*

Email
Submitted on: 7/19/2000 1:02:57 AM
By: Bill Katz 
Level: Advanced
User Rating: By 22 Users
Compatibility: VB 3.0, VB 4.0 (16-bit), VB 4.0 (32-bit), VB 5.0, VB 6.0, VB Script, ASP (Active Server Pages)
Views: 40694
(About the author)
 
     This code logs you in to the Hotmail server using standard http commands (the same thing your browser uses). After retrieving your mailbox source from Hotmail, it will tell you how many new messages you have. With this code however, you may do whatever you wish with your account (through programming), once you understand how it works. commented heavily to ensure understanding. if you have any questions or comments, my email address is: nmjblue@hotmail.com... Enjoy!

 
winzip iconDownload code

Note: Due to the size or complexity of this submission, the author has submitted it as a .zip file to shorten your download time. Afterdownloading it, you will need a program like Winzip to decompress it.Virus note:All files are scanned once-a-day by Planet Source Code for viruses, but new viruses come out every day, so no prevention program can catch 100% of them. For your own safety, please:
  1. Re-scan downloaded files using your personal virus checker before using it.
  2. NEVER, EVER run compiled files (.exe's, .ocx's, .dll's etc.)--only run source code.
  3. Scan the source code with Minnow's Project Scanner

If you don't have a virus scanner, you can get one at many places on the net including:McAfee.com

 
Terms of Agreement:   
By using this code, you agree to the following terms...   
  1. You may use this code in your own programs (and may compile it into a program and distribute it in compiled format for languages that allow it) freely and with no charge.
  2. You MAY NOT redistribute this code (for example to a web site) without written permission from the original author. Failure to do so is a violation of copyright laws.   
  3. You may link to this code from another website, but ONLY if it is not wrapped in a frame. 
  4. You will abide by any additional copyright restrictions which the author may have placed in the code or code's description.

Report Bad Submission
Use this form to tell us if this entry should be deleted (i.e contains no code, is a virus, etc.).
This submission should be removed because:

Your Vote

What do you think of this code (in the Advanced category)?
(The code with your highest vote will win this month's coding contest!)
Excellent  Good  Average  Below Average  Poor (See voting log ...)
 

Other User Comments
7/19/2000 2:14:39 AMChris Trahan

This is the best i have seen.. Its perfect.. A Hotmail checker.. I mean.. I hate loading my browser and all.. Now we just have to get it to sit in the task tray and play a wav file when u get a new message.. try using Winsock though... not the other CWS sockets.. Laterz
(If this comment was disrespectful, please report it.)

 
7/19/2000 7:26:50 AMAndrew Armstrong

Yeah mate, use Winsock ;) This is cool though man! Not like that phoney other one which actually stole ya p/w's! Thanx for this man!!! If you are having trouble registering winsock, or dont even have the silly thing lol, search PSC for "Register winsock.ocx and inet.ocx" or "Andrew Armstrong". Its my post, I have made a proggie to install winsock and the inet controls easy! W/o that licensing error :( - Once again, great!!!
(If this comment was disrespectful, please report it.)

 
7/19/2000 10:12:20 PMdevilDemon66

NICE!!!!!!
(If this comment was disrespectful, please report it.)

 
7/20/2000 4:52:30 AMRik

Any way of getting it to work through a proxy server type idea?
(If this comment was disrespectful, please report it.)

 
7/20/2000 11:20:18 AMAfshaad Patel

This is nice code. But can you this from the code when it says new message can you click on a command button and open your mail box.
(If this comment was disrespectful, please report it.)

 
7/20/2000 4:53:46 PMAce315

Thanx! that was all I needed!
(If this comment was disrespectful, please report it.)

 
7/21/2000 2:14:11 AMAndrew Ling

Great program. I never knew that you could do programs like that in Visual Basic.
(If this comment was disrespectful, please report it.)

 
7/21/2000 12:29:29 PMLaudeci Oliveira

Man... I was seeking for this kind of information, and you maked it before me...:) but here's the question.. where did you find this kind of information?
(If this comment was disrespectful, please report it.)

 
7/21/2000 12:31:17 PMLaudeci Oliveira

You're the man... i'm trying to find information about HTTP protocol about months... can you share where do you find informations like that?
(If this comment was disrespectful, please report it.)

 
7/21/2000 3:16:05 PMPolar J.

yeah actually, i was stumped like you
guys, but theres a way that i easily
found all these commands out on my own.
and i'm currently expanding this
program to actually check your
messages, and alert you when u have new
ones, etc... now im not going to write
any tutorials here or anything, but if
u want me to explain these commands to
you or how i got them, i'd be happy to
help you out. just email me, i'll get back to you as soon as i can.
(If this comment was disrespectful, please report it.)

 
7/28/2000 8:58:45 AMMatt

Can you click on a command button and
open your mail box. If you can't write this just admit it, we won't laugh at you :)

(If this comment was disrespectful, please report it.)

 
8/5/2000 9:37:04 PMmostafa

Hi polar j,
(If this comment was disrespectful, please report it.)

 
8/5/2000 9:40:31 PMMostafa Mohamed

i think that microsft changed the way of loging in hotmail,because when i tried to login only what they do they cloed the connection between me and the isp (the dial up networking,it is not a neutral disconiction or no errors) so if it works in your computer then tell me because i'm affraid to test it again since they can destroy my computer (they will think i'm a hacker !!!microsoft!!!),thanks for your nice code
(If this comment was disrespectful, please report it.)

 
8/6/2000 7:14:31 AMAlfred Xu

Nice! Great! That is just I need.
(If this comment was disrespectful, please report it.)

 
8/6/2000 7:16:45 AMShaofei

Can you add a EXE in the zip so that I can just try it
(If this comment was disrespectful, please report it.)

 
8/6/2000 10:02:50 PMPolar J.

Thank you to everyone who tried my program...

if anyone can help out someone who is having trouble here, PLEASE do so...

Because I received a great number of emails telling me to create a way to read your new messages, I have just started expanding the program to do so. I expect it to be up before too long, so keep checking back.
Also, if you have any suggestions as to
other features that should be added, please let me know. I'm still open to suggestions...
Thanks,

-Polar J-
(If this comment was disrespectful, please report it.)

 
8/8/2000 9:18:35 AMHenYa

wew, according to your screen shot you don't have Smooth Fonts turned on... turn em on in Control Panel > Display > Appearance..


Nice code - i'm going adapt your Form Post source to do other jobs on my webserver...

hehe :P

I'm HenYa
(If this comment was disrespectful, please report it.)

 
8/9/2000 3:15:20 PMDigitally_Unknown

This thing is awsome! I do have one problem though, one some hotmail addresses it takes forever for it to read the new messages. If it reads them at all. And one others it reads them fine and lists if you have new mail or not. Do you have that problem or is it just me? And how can you or I fix it?
(If this comment was disrespectful, please report it.)

 
8/10/2000 1:24:33 PMTotoBest

Great! I had already outlook express for reading my e-mail from Hotmail, but now, i have a quickly mail-check that start ms oe when i got new mail! great!
(If this comment was disrespectful, please report it.)

 
8/12/2000 11:08:05 AMDan Messenger

It opened fine, I ran it, no errors, I entered my user information and clicked the button.
Step 1, no errors
Step 2, seemed fine
Step 3, Its working !
Step 4, I've been looking for a program like this
Step 5, Its taking its time, a long time, its stopped.

Keeps stoping on step 5, not freezing or crashing, just stopping.

Anybody know why ?
(If this comment was disrespectful, please report it.)

 
8/13/2000 2:14:41 PMMarc-André

Great! But why not use MSN messenger (from microsoft) instead, it check your hotmail account and it is an Instant Messenger, just like ICQ !
(If this comment was disrespectful, please report it.)

 
8/14/2000 8:32:43 PMDigital Vampire

looks like nice code :)
but it didn't work for me ..

marc - you missed the point lol ..
and i hate msn messenger , it sux.
(If this comment was disrespectful, please report it.)

 
8/15/2000 10:36:19 AMhmmm

i have the same problem with it stopping on step 5.
(If this comment was disrespectful, please report it.)

 
8/15/2000 8:58:49 PMDan Messenger

Hmmm - I have VB5 Prof SP2, what about you?

I am working on a version of this which uses Winsock. I am having a problem with the cookies at the moment as Winsock is being stvpid (it wouldn't let me spell it with a u) and receiving them all as one message !
Will keep you posted of my progress.
(If this comment was disrespectful, please report it.)

 
8/17/2000 12:57:55 AMShavantha

It's grate thankx
(If this comment was disrespectful, please report it.)

 
8/17/2000 8:22:07 AMhmm

i am using vb6.
(If this comment was disrespectful, please report it.)

 
8/23/2000 8:17:34 AMTerminally Insane Sikotic Therapist (TiST)

I see everyone on here asking for the code to be better - make it read and reply e-mail .. use basic SMTP and do it yourself think..use brains..or are you people here to leech off other codes? Some of you I looked up and found nothing, same with me you won't find nothing based on the fact that my buddy made a personal webserver. if you check it out now and match the source codes almost 8/10 webservers on this website are ripped from his and he didn't want to hand out the source. I'm just saying this for original authors out there..watch your stuff. If it's good enough someone can very easily take it, remodel it and sell!
(If this comment was disrespectful, please report it.)

 
8/28/2000 10:04:50 PMWarmaster199

This is cool. Try putting a remember passwrod and username checkbox and get the button to save the username / password in the registry. Then, in Form_Load, get it to load the registry variables for the checkbox. That way we won't have to enter our username and password everytime :)
(If this comment was disrespectful, please report it.)

 
9/1/2000 2:03:38 AMJames

I've managed to get the Hotmail checker to display your inbox messages as well as messages in any other folder you have. Plus, it can read the message bodies, handle multiple pages of message headers, and delete messages. I plan on getting it to send messages and move messages to other folders next. The code I downloaded didn't work though. After step five, once you come across a tag, it should disconnect and then send the next command. That made it work. Sometimes though, MS changes the cookies a bit.
(If this comment was disrespectful, please report it.)

 
9/2/2000 11:26:50 AMJohnathon

James, could you post up the fixed version? Thanks a lot.
(If this comment was disrespectful, please report it.)

 
11/23/2000 5:54:18 PMNateDog

This is sweet man, I think I had the same problem as a couple of the previous people. I was stepping through your program and it just stopped. It ran fine when I used the .exe file but I couldn't step through it.

btw could someone explain to me how winsock works??
(If this comment was disrespectful, please report it.)

 
5/2/2001 10:46:17 PMPhillip Tricoli

confused... I have a cable modem, I have modified none of the source code and it just says connecting to hotmail. I look at the socket.connected and it is false help.. philtric@hotmail.com.
Thanks in Advance.
(If this comment was disrespectful, please report it.)

 
1/16/2002 11:55:16 PMRavi Kumar

Authorative host not found error!!!!!!!!!!
(If this comment was disrespectful, please report it.)

 
3/23/2002 5:22:53 PMGustavo


(If this comment was disrespectful, please report it.)

 
3/23/2002 5:23:17 PMGustavo

"lc5.law5.hotmail.passport.com" is right?

I'm receiving
Authorative host not found
error!!!!!!!!!!
(If this comment was disrespectful, please report it.)

 
5/4/2002 3:13:35 PMBreixo

Me to!!.
I'm receiving Authorative host not found error in line with:
"lc5.law5.hotmail.passport.com"

(If this comment was disrespectful, please report it.)

 
6/13/2002 8:20:54 PMZebosworld

Guys, before i begin i wanna tell the two guys above me that you have to use lc3.law13.hotmail.passport.com instead of lc5.law5.hotmail.passport.com . that will make that part work. But what i don't understand is why the maildata variable isn't containing the source html. this is at step 5. can you please help me anyone?
(If this comment was disrespectful, please report it.)

 
6/24/2002 7:27:48 AMSudharshan

Thanks for the lovely site that gives you how to access the Hotmail account through socket programming..This will realy help people like me who are searching for IT projects..

Bill I'm doing this IT degree & I have to submit a project proposal for my final year.

Well I will be basing my project in VB since its the easiest tool to use. Therefore I will be most grateful if you can give me a helping hand in finding a project.

Also when I tried the code regarding the Hotmail account it stopped at step 5. Can you tell me how I can get it to work & also how I can access the email data through socket programming cos I'm not fermiliar with socket programming.
(If this comment was disrespectful, please report it.)

 
7/23/2002 3:50:57 PMRICK

Do you have a VB.Net Version?
(If this comment was disrespectful, please report it.)

 
11/27/2002 2:33:23 PM

Ops! i don't have CSWSCK.ocx where can i find it?
(If this comment was disrespectful, please report it.)

 
1/10/2003 6:55:50 PM

It stops at step 5 and doesn't do anything
(If this comment was disrespectful, please report it.)

 
3/29/2003 12:28:26 AM

i get an error when i click sign-in, it opens my view code screen and it seems to have a problem with the "socket.action = 2" in the connecttohotmail section. can any one help
(If this comment was disrespectful, please report it.)

 
9/7/2003 5:15:14 PMShawn K

Yeah, the error...first of all, hotmail changed the address and added security! I was hoping this had what I wanted, but nope...btw, there is no real way to get it to work!!! crazy (that's putting it nicely) microsoft, they don't want us to make anything, they want us to always have to buy their crap!
(If this comment was disrespectful, please report it.)

 

Add Your Feedback
Your feedback will be posted below and an email sent to the author. Please remember that the author was kind enough to share this with you, so any criticisms must be stated politely, or they will be deleted. (For feedback not related to this particular code, please click here instead.)
 

To post feedback, first please login.