Click here to Skip to main content
Licence 
First Posted 1 Aug 2005
Views 20,113
Bookmarked 9 times

eMailCheck

By | 1 Aug 2005 | Article
This articles illustrates CheckMail which is a C++ class to extract a list of email addresses found on a local computer, using the registry.

Introduction

CheckMail is a C++ class to extract a list of email addresses found on a local computer using the registry. It tries to enumerate all subkeys of the registry key: HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\UnreadMail.

How to use it

Include "CheckMail.h" in the file where you want to use this class, or include it in your "AppDlg.h" file, for example. Then, declare an object of CCheckMail class, named "mail" here.

You are now ready to use the "mail" object :-)

Example in a "for" loop:

for(int i=0; i<mail.m_mail.GetCount(); i++)
{
    printf("#%i: %s\n",i+1,mail.m_mail[i]);
}

That's all.

Restrictions

Tested on Windows XP SP1 and Windows 2003 with Outlook Express and Thunderbird. It seems to fail with "Incredimail". For others, I don't know, sorry.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here

About the Author

$icK$



France France

Member



Sign Up to vote   Poor Excellent
Add a reason or comment to your vote: x
Votes of 3 or less require a comment

Comments and Discussions

 
You must Sign In to use this message board. (secure sign-in)
 
Search this forum  
 FAQ
    Noise  Layout  Per page   
  Refresh
GeneralInternetGetConnectedState Pinmember$icK$6:33 9 Oct '05  
QuestionHow to check the computer connected to internet of not PinmemberThangaDharma5:04 9 Oct '05  
GeneralSHGetUnreadMailCount Function PinmemberUri Twig0:44 2 Aug '05  
GeneralRe: SHGetUnreadMailCount Function Pinmembermanos_crete3:35 3 Aug '05  

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

Permalink | Advertise | Privacy | Mobile
Web01 | 2.5.120517.1 | Last Updated 1 Aug 2005
Article Copyright 2005 by $icK$
Everything else Copyright © CodeProject, 1999-2012
Terms of Use
Layout: fixed | fluid