Click here to Skip to main content
15,867,488 members
Articles / Desktop Programming / MFC
Article

E-Mail Notifier - notifies users when new mail is received on multiple GMail (and other) accounts

Rate me:
Please Sign up or sign in to vote.
1.00/5 (31 votes)
11 Jul 20042 min read 92.2K   1.5K   32   30
This light, yet very usable, application notifies users when new mail is received on multiple GMail (and other) accounts. Written in C++/MFC. No .NET framework, no browser instances launched, low system resource requirements!

Sample Image - mailnotifier.jpg

Introduction

Since the GMail hype appeared, I saw many programs that offered to notify me when I had GMail, but none of them was what I wanted. They were either written using .NET framework, thus taking up more system resources than I would like for a simple notification program, or they launched instances of Internet Explorer in an attempt to automate the process. None of these solutions appealed to me, so I wrote my own application. It is written in Visual Studio .NET 2003, using MFC.

How does it work ?

The application uses WinInet to connect to Internet and send HTTP requests. It works through proxies too, since WinInet uses Internet Explorer settings. The application simulates the GMail user logon process to get to the inbox page, which is parsed. The program settings are stored in registry under HKCU\Software\Catalin\MailNotifier key. Passwords are securely stored using CryptoAPI.

Using Mail Notifier

You can add, remove, or edit e-mail accounts for notification. When new mail is received, a balloon-style tooltip appears near the taskbar icon, and the icon changes accordingly. If an account contains the same number of new e-mails between checks, the balloon tooltips appear only twice. After this, only the taskbar icon is changed, so that the user does not become annoyed. When errors are encountered during the mail check, the taskbar icon changes to reflect the error state. Opening the user interface (via the context menu) shows up more details about the state of each account. Double-clicking on an e-mail account starts the default web browser with the GMail page as default.

System Requirements

The application has been tested on Windows XP and Windows Server 2003. There is a great chance that it will work under Windows 2000. Since the application is Unicode-compiled, it will work under Windows 9x only if the Microsoft Layer for Unicode is present.

I hope the application will be very useful to some users, now that web-based e-mail services are giving so much e-mail storage for free. A tool like this can make a web-based e-mail service really usable.

Future enhancements

  • POP3, IMAP, Yahoo! and Hotmail support - really soon (only supports Gmail for now).
  • E-mail subject and sender to be displayed when e-mail is received.
  • Enhanced GUI.

To get the latest version of the tool, please visit here.

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


Written By
Web Developer
Romania Romania
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions

 
GeneralRe: one question! Pin
Dr. Derk17-Jan-07 23:02
Dr. Derk17-Jan-07 23:02 
QuestionNo source? Pin
fcheng12-Jul-04 5:49
fcheng12-Jul-04 5:49 
AnswerRe: No source? Pin
Infinitus12-Jul-04 21:19
Infinitus12-Jul-04 21:19 
GeneralRe: No source? Pin
Tom Archer3-Sep-04 16:49
Tom Archer3-Sep-04 16:49 
GeneralRe: No source? Pin
mrsnipey21-Jun-05 0:56
mrsnipey21-Jun-05 0:56 

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.