|
-
Apr 22nd, 2009, 09:09 AM
#1
Thread Starter
Lively Member
Gmail Email Count
Hi,
I'm looking for some sample code that provides me with a count of how many new emails I have. Searching the forum, I found ways to read the email and save all emails to file and ways to send emails, but no way to get an email count for my Gmail account.
Just store the number of new emails into a variable.
Sample code or related links are appreciated.
Last edited by airman00; Apr 22nd, 2009 at 05:06 PM.
-
Apr 22nd, 2009, 04:23 PM
#2
Re: Gmail Email Count
there is code for pop emails using winsock in this forum, also some classes in codebank(vb6)
i believe all samples would return how many new emails
i have not tried to use pop with gmail, but you need to use the correct port and i believe it would also require ssl (secure sockets layer)
search on pop and winsock
i do my best to test code works before i post it, but sometimes am unable to do so for some reason, and usually say so if this is the case.
Note code snippets posted are just that and do not include error handling that is required in real world applications, but avoid On Error Resume Next
dim all variables as required as often i have done so elsewhere in my code but only posted the relevant part
come back and mark your original post as resolved if your problem is fixed
pete
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|