Important alert: (current site time 7/16/2013 3:31:57 AM EDT)
 

winzip icon

HotmailBox (Hotmail Client) ** Updated October 6**

Email
Submitted on: 9/6/2000 3:18:30 PM
By: James Coulter  
Level: Advanced
User Rating: By 16 Users
Compatibility: VB 5.0, VB 6.0
Views: 34257
 
     UPDATED Sept. 10

This is a much improved version of the Hotmail Checker. It has support for multiple inbox pages, downloads and saves messages for later retrieval, stores your message headers, sends messages and deletes messages. It now includes an Address Book and support for multiple Hotmail accounts.

Bug with the timeout timer was fixed.
** OCT 6 ** Problems with registry under Win95 OSR2 and Win2k should be resolved.
** OCT 6 ** The program was apparently broken and is now functional again
** NOV 9 ** The program should show something when it starts up now


 
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.


Other 2 submission(s) by this author

 


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
9/6/2000 4:12:00 PMGilad Peleg

Great code, keep it up.
(If this comment was disrespectful, please report it.)

 
9/6/2000 5:16:31 PMJohnathon

Immaculate. Awesome. Keep it up.
(If this comment was disrespectful, please report it.)

 
9/6/2000 6:11:09 PMMehdi Hanbali

excellent code. just what i need. definitly code of the month.!
(If this comment was disrespectful, please report it.)

 
9/6/2000 6:47:21 PMDigital Vampire

buggy but nice none the less :)
(If this comment was disrespectful, please report it.)

 
9/6/2000 7:17:42 PMHard Drive

What about attachment support? Is it there? I couldn't get it to work...

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

 
9/6/2000 7:48:01 PMJames Coulter

I actually have two versions of this. One I use for testing out new stuff, and the other is this one. The attachment stuff that you see in this one was just cut and paste from the testing one. I haven't got it working completely yet, but it will soon. I'm having problems with other folders, but I should be able to figure them out too. I plan on keeping it as up-to-date as possible.
(If this comment was disrespectful, please report it.)

 
9/6/2000 9:00:23 PM\/îÞè® Tè¢.

Figure out how to send and I'll vote 9 times (9 names for the members of viper tec) all excellent!
(If this comment was disrespectful, please report it.)

 
9/6/2000 10:03:32 PMJames Coulter

I am. I'm trying to get the server to talk to me. The most important thing you need to think about here is "what information do I need?" and "Where can I get that information?". I think I know. heheh.
(If this comment was disrespectful, please report it.)

 
9/7/2000 10:56:44 AMJohnathon

Excellent work James. You have truly outdone yourself. :)
I am working on a delete messages from inbox function myself,
because I noticed if you have already read messages in your
inbox, and you check your mail, the client goes to step 5 but
just stops and does nothing. Judging from your track record so
far though, I am sure this will be resolved in no time. Keep up
the stellar work.


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

 
9/7/2000 10:59:32 AMJames Coulter

Just a duplicate message probably. I'm almost done the next version, which does not allow duplicate msgurls.
(If this comment was disrespectful, please report it.)

 
9/7/2000 11:07:13 AMJames Coulter

Oh yes, that has been fixed, I think. It was due to the fact that I only want to download the folders once. I've got message deletion working now. I had to change the way the messages were stored a bit.
(If this comment was disrespectful, please report it.)

 
9/7/2000 4:42:59 PMTom Walker

This is really great, you should also put this on some Freeware / Shareware libraries for people who don't visit PSC.
(If this comment was disrespectful, please report it.)

 
9/7/2000 4:46:55 PMTom Walker

How about adding profile change screen to store information about lots of users & check multiple accounts?
(If this comment was disrespectful, please report it.)

 
9/8/2000 3:43:46 PMTom Walker

Crashes if you try and delete your last message, though.
(If this comment was disrespectful, please report it.)

 
9/8/2000 4:30:08 PMDan Messenger

It now performs an Overflow at then line:

lastmsg = pos3 + 1

In the findnextmessage function

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

 
9/8/2000 10:35:07 PMJames Coulter

Well, you must have some your messages per page set very high. It's fixed now though.
(If this comment was disrespectful, please report it.)

 
9/12/2000 3:13:30 PMEric Malamisura

It doesnt work in windows 2000..It wont even display your splash screen for some reason...Very wierd...

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

 
9/12/2000 3:16:14 PMEric Malamisura

Took a second look at your splash screen code..It seems your registry code isnt up to par with the Security settings in windows 2000..I can email you a registry class I use in win2k and win98 that works great..You wont have to modify barely anything to make the change over..

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

 
10/5/2000 12:19:05 AM>Link

ok guys:

I'm running win 98, vb6 learning and nothing will come up until I put a 'form(whatever).show'. is anything meant to come up? your using a strange coding method nonethe less..... can someone give us some insight on what on earth is going on here?

thanks.

PS: Inprossesive codeing !!!! EXCELLENT!

>Link
"I'm not a complete freak, some parts are missing" - >Link
(If this comment was disrespectful, please report it.)

 
10/5/2000 4:05:22 PMyo

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

 
10/6/2000 8:27:35 PMJames Coulter

Thanks for all the feedback. I appreciate your comments and bug reports. I've updated the code here with the registry module that Eric M. sent me. It should resolve the Win95 OSR2 and Win2k problems. I've also fixed the program, as it seems to have been broken.

For those really interested in using the program as an alternative Hotmail client, check out www.tugboatharbor.com/cs for the latest
beta version.

Also, keep your suggestions, bug reports and comments comming in. They help out a lot.

THANKS A BUNCH,
James Coulter
TugboatHarbor.com Incorporated
(If this comment was disrespectful, please report it.)

 
10/12/2000 7:42:13 PMChris Fennell

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

 
10/18/2000 7:34:46 PMBatman

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

 
10/22/2000 8:32:22 PMPrivate1

Nice Work!
1 Question
Is this the latest version thats avalible ?
(If this comment was disrespectful, please report it.)

 
10/28/2000 4:39:14 PMTom tah@xtra.co.nz

I tried to run it with VB5 but got message invalid key Retained, so I deleted Retained=0, but then the program wouldnt run :-(
(If this comment was disrespectful, please report it.)

 
10/28/2000 4:41:39 PMTom

I tried this with VB5 but got an error Retained is an invalid key. So I deleted Retained=0 from HotmailCheck.vbp, but then the project wouldnt run :-(
(If this comment was disrespectful, please report it.)

 
10/31/2000 10:35:56 AMCrystal

Looks really nice, but I when I try to run the project, frmhotmail doesn't show (just hangs there). (I'm running Win2K)
(If this comment was disrespectful, please report it.)

 
11/2/2000 9:24:51 AMThemba Kriger

ok from what i seen from the code and the screen shot i looks proffesional and good, but i cant rate it becuase it doesn't run on my system. I am using WindowsMe and vb6 i am experiencing the same problems the win2k ppl are nothing happens. the program runs, but i dont even see the first form, maybe u should try using an ini file instead of the registry! do u have a win2k or winme system to test on?
please sort this bug out as i am very curious to see this highly rated program in action! thanks in advance
(If this comment was disrespectful, please report it.)

 
3/15/2001 12:12:56 AMSolomon

I am using the RepShell that I found at this site. I used your program successfully and so far have had no problems. BTW RepShell is being run as the front end for WIN98. This is one of the mose excelent pieces of code I have seen at this site in a long time. Please let me know of any updates. solomon_2000@techie.com
(If this comment was disrespectful, please report it.)

 
4/24/2001 4:53:25 PMTom Williams

I too had a problem running the program when I first tried it but then for some reason it ran after I tried to run it again. "????????".

I noticed that Microsoft has changed the address for the sign on. I took a screen shot after I hit the submit button on-line at Hotmail.com.
The new URL is "lc1.law5.hotmail.passport.com" so to get this program to work just go to the ConnectToHotmail() Sub and change the URL to the correct. I wonder if MS is going to randomly change this? If so you could have some type of timeout test that increments the number from 1 to 5 in the URL.

Thanks for the fun code. Let me know if you have a reason why the program doesn't work the first time. It could be the registry issues but I won't know until I hack it a bit more.

Best Regards,

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

 
7/19/2001 9:47:24 AMnewbie25

The url to your page don't work...
(If this comment was disrespectful, please report it.)

 
9/9/2001 12:14:16 PMRalph

Program crashes immediately
frmHotmail.log:
(If this comment was disrespectful, please report it.)

 
9/9/2001 12:16:09 PMRalph

(continued) Cannot load control Socket.
(If this comment was disrespectful, please report it.)

 
11/2/2001 8:43:30 AMAlpha

Hotmail changes the accessing address randomly every times anyone in the world browse to http://www.hotmail.com and that's a very bad news coz your program no longer can access Hotmail the old way. Also, I've found out that your website (www.tugborharbour.com or something like this right?) has closed (hasn't it?) so I can't find any newer version to download. :(
(If this comment was disrespectful, please report it.)

 
3/17/2002 9:05:24 PMSolomon

Hi, I have a copy of the HotmailBox that I downloaded from Planet Source Code. I am Using windows XP which uses IE.6. Is there an updated version that is anymore compatable whith my OS. I am trying to study the source-code in an effort to write an email program. I am stuck ant sending the HTML from VB.6 Your program seems like the perfect tool for my efforts. -solomon@allthingsconsidered.ca or swwilliamsw@yahoo.com ThankQ in advance for your time.
(If this comment was disrespectful, please report it.)

 
3/25/2002 7:38:17 AMPhr3t

ever thought of using the SaveSetting and GetSetting reg functions? sure they dont allow you to provide the EXACT location of where the data goes..... but does that matter? and it would always work... no security problems... and its SIMPLE!

Phr3t
http://www.phr3t.tk
(If this comment was disrespectful, please report it.)

 
3/25/2002 7:39:11 AMPhr3t

oh also could someone please tell me how to sign up for a new account with some code...?

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

 
5/25/2002 11:20:50 AMNathanael B

Hi,
I don't believe hotmail changes the address every time, it always seems to be lc.law15.......etc for me. BTW your website doesn't work :(

I'm about to download the code...
(If this comment was disrespectful, please report it.)

 
5/25/2002 11:40:47 AMNathanael B

Okay, I downloaded it. Great code! At first the frmhotmail form didn't show, but I just added a frmhotmail.Show line in the splash screen form and it worked. I changed the connection address to lw2fd.hotmail.msn.com, and it connected, but gave me some errors (when using Mid() to get the value of Newmessage). I assume this is because Microsoft has changed the Hotmail interface. By the way, though, what about connecting to Hotmail the way Outlook Express does, through httpmail.asp? You can e-mail me at nbarb99@satx.rr.com. 5 globes from me!
(If this comment was disrespectful, please report it.)

 
6/4/2002 12:56:45 AMSolomon

Hello. I made tha address change mentioned here in the comments see(4/24/2001 4:53:25 PM:Tom Williams). at that point The program finnaly ran. But now I get teh error: Invalid procedure call or argument in (Private Sub Socket_Read) in the line stat says: ffset = InStr(Location - 5, MailData,
(If this comment was disrespectful, please report it.)

 
7/6/2002 11:36:21 PMdon

I'm getting all kinds of errors running in W2K. Mostly socket errors. Tooltips keep scrolling through 1,2,3,4 several times then it crashes. :(
(If this comment was disrespectful, please report it.)

 
10/17/2002 10:14:31 PM

Nice code man. But having a little problem with it when it checks for new mail i get on invalid call error the line of code where it shows this is Offset = InStr(Location - 5, MailData, ">") + 1 i hope you get it worked out but the program looks great and i'm looking for a replacement to that msn explorer. thanx
(If this comment was disrespectful, please report it.)

 
11/10/2002 10:20:59 PM

CSWSK32.OCX - When I open the project VB indicates that this file cannot be found. Can this project run on VB 6; I'm on Win 2000 server? I could not find that file on my system.

TIA,

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

 
5/25/2003 2:35:46 AMChris Stratford

Hey mate!

Well Looks Great!

ONE Thing Tho...
Your Good At This, Yet You Dont Know Some Of the Simplest Commands For VB.
EG:

tt1 = InStr(1, body,
(If this comment was disrespectful, please report it.)

 
5/25/2003 2:36:30 AMChris Stratford

WOW. that didnt work, here:

body = Replace(body, " ", "+")

that line will replace this:

tt1 = InStr(1, body, " ")
Do Until tt1 = 0
part1 = Mid(body, 1, tt1 - 1)
part2 = Mid(body, tt1 + 1, Len(body) - tt1)

body = part1 & "+" & part2

last = tt1 + 1
tt1 = InStr(1, body, " ")
Loop
(If this comment was disrespectful, please report it.)

 
5/25/2003 2:37:01 AMChris Stratford

BTW - thats from the sub:
MakeSendString
(If this comment was disrespectful, please report it.)

 
6/28/2003 8:06:16 PMalicia101

Hi guys, Im quite new to VB, when I try to load this project I get a message about an OCX missing, how do I solve this?

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

 
10/6/2003 5:59:52 PMThe_Burner

OCX missing ?

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

 
12/6/2003 6:49:43 AM

OCX missing ?


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

 
1/17/2005 3:45:32 PMHardStream Software Development

Can some1 send me CSWSK32.OCX¿?¿?
It's missing and I can't find it anywhere :(
I'm running WinXP SP2 and VB6 SP6
My e-mail is info@hardstream.tk
(If this comment was disrespectful, please report it.)

 
8/18/2005 3:40:11 PMMaikel

he this program does dont work work by me he sad the socket is a picturebox???
does someone knows a solution
(If this comment was disrespectful, please report it.)

 
8/21/2005 7:20:01 PMpcpt

same for me. cswsk32.ocx is missing. there is juste cswsk32.oca, not enough to run you software....
is it a free component? i found it for 10$, so not bought ;)
(If this comment was disrespectful, please report it.)

 
12/20/2005 9:22:59 PMTom Williams

Got the OCX here... http://www.stolaf.edu/people/hansonr/origami/WIN/CSWSK32.OCX
(If this comment was disrespectful, please report it.)

 
12/20/2005 10:00:39 PMTom Williams

Ok, since I found the OCX and have registered it, I have been having problems where it will not connect and fails in the ConnectToHotmail() Routine. It fails on the Socket.Action = 2 with an error message of, "No Data Record of Requested Type".

I'm very interested in this so any tips would be greatly appreciated.

BTW, nice coding techniques.

Regards,

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

 
12/21/2005 12:30:43 PMTom Williams

Oh Yeah, I'm running Win XP Pro SP2
Tom
(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.