Click here to Skip to main content
14,299,406 members

eMailCheck

Rate this:
1.03 (12 votes)
Please Sign up or sign in to vote.
1.03 (12 votes)
1 Aug 2005
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

Share

About the Author

$icK$
France France
No Biography provided

Comments and Discussions

 
GeneralInternetGetConnectedState Pin
$icK$9-Oct-05 6:33
member$icK$9-Oct-05 6:33 
QuestionHow to check the computer connected to internet of not Pin
ThangaDharma9-Oct-05 5:04
memberThangaDharma9-Oct-05 5:04 
GeneralSHGetUnreadMailCount Function Pin
Uri Twig2-Aug-05 0:44
memberUri Twig2-Aug-05 0:44 
GeneralRe: SHGetUnreadMailCount Function Pin
manos_crete3-Aug-05 3:35
membermanos_crete3-Aug-05 3:35 

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

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

Article
Posted 1 Aug 2005

Stats

25.5K views
347 downloads
9 bookmarked