Click here to Skip to main content
15,879,348 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.3K   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

 
GeneralNo Source for this proj Pin
jeremiebeltran4-Aug-09 19:56
jeremiebeltran4-Aug-09 19:56 
GeneralMy vote of 1 Pin
Balkrishna Talele31-Mar-09 21:15
Balkrishna Talele31-Mar-09 21:15 
GeneralMy vote of 1 Pin
jzonthemtn2-Dec-08 4:12
jzonthemtn2-Dec-08 4:12 
QuestionHow to access Gmail inbox Pin
nicoliky13-Mar-07 2:37
nicoliky13-Mar-07 2:37 
GeneralHe want spy our gmail password,dong't use this spam!!! Pin
Steven Dong21-Jun-06 16:58
Steven Dong21-Jun-06 16:58 
QuestionQQQQuestion :) Pin
Anonymous11-Oct-05 15:13
Anonymous11-Oct-05 15:13 
AnswerRe: QQQQuestion :) Pin
MovieNinja11-Oct-05 15:17
MovieNinja11-Oct-05 15:17 
Generaldoes not work behind a proxy... Pin
Anonymous19-Sep-05 19:38
Anonymous19-Sep-05 19:38 
GeneralRe: does not work behind a proxy... Pin
Catalin Stavaru19-Sep-05 22:28
Catalin Stavaru19-Sep-05 22:28 
Questionwhy publish this program ? Pin
edg_HH5-Jun-05 3:44
edg_HH5-Jun-05 3:44 
AnswerRe: why publish this program ? Pin
Catalin Stavaru5-Jun-05 7:40
Catalin Stavaru5-Jun-05 7:40 
GeneralRe: why publish this program ? Pin
DIógenes12-Aug-05 1:31
DIógenes12-Aug-05 1:31 
GeneralRe: why publish this program ? Pin
Catalin Stavaru12-Aug-05 2:02
Catalin Stavaru12-Aug-05 2:02 
GeneralNo Source & Internet Connection Error Pin
crouchie0418-Apr-05 14:57
crouchie0418-Apr-05 14:57 
GeneralRe: No Source & Internet Connection Error Pin
Catalin Stavaru18-Apr-05 20:44
Catalin Stavaru18-Apr-05 20:44 
Generalsource code Pin
xdx0075-Nov-04 6:20
xdx0075-Nov-04 6:20 
GeneralAHH! it opens up IE instead of Firefox Pin
gizsre13-Oct-04 7:38
sussgizsre13-Oct-04 7:38 
GeneralRe: AHH! it opens up IE instead of Firefox Pin
Catalin Stavaru13-Oct-04 8:02
Catalin Stavaru13-Oct-04 8:02 
Generalinternet error / login error Pin
SGarratt19-Aug-04 7:04
SGarratt19-Aug-04 7:04 
GeneralRe: internet error / login error Pin
Catalin Stavaru19-Aug-04 10:08
Catalin Stavaru19-Aug-04 10:08 
GeneralRe: internet error / login error Pin
__me1-Mar-05 22:13
__me1-Mar-05 22:13 
Generaldumb Pin
Labrat0021-Aug-04 17:09
Labrat0021-Aug-04 17:09 
GeneralRe: dumb Pin
Catalin Stavaru2-Aug-04 1:13
Catalin Stavaru2-Aug-04 1:13 
Generalone question! Pin
Prakash Nadar23-Jul-04 18:09
Prakash Nadar23-Jul-04 18:09 
GeneralRe: one question! Pin
Catalin Stavaru23-Jul-04 22:53
Catalin Stavaru23-Jul-04 22:53 

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.