Click here to Skip to main content
Click here to Skip to main content

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

By , 11 Jul 2004
 

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

About the Author

Catalin Stavaru
Web Developer
Romania Romania
Member
No Biography provided

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.
Search this forum  
    Spacing  Noise  Layout  Per page   
GeneralNo Source for this projmemberjeremiebeltran4 Aug '09 - 19:56 
can you upload the source of this program?
or if you may sir can you send me a copy of the source in my email (jeremiebeltran@gmail.com)
 

 
thanks
GeneralMy vote of 1memberBalkrishna Talele31 Mar '09 - 21:15 
no source code, can sniff password, dunno what internally it is doing
GeneralMy vote of 1memberThe JZ2 Dec '08 - 4:12 
No source code.
QuestionHow to access Gmail inboxmembernicoliky13 Mar '07 - 2:37 
It is a pity no code is shown. Could you explain us how to access to the Gmail inbox or simply retrive emails?
Thanx
GeneralHe want spy our gmail password,dong't use this spam!!!memberSteven Dong21 Jun '06 - 16:58 
He want spy our gmail password,dong't use this spam!!!
 

QuestionQQQQuestion :)sussAnonymous11 Oct '05 - 15:13 
Howdy,
 
Just wondering if you had any tutorials (with source?) on:
- Making those little pop-up bubbles
- Setting a program to run in the task-bar and changing it's icon around
 
Thanx man (don't sweat the people who think they own your source),
- Me
AnswerRe: QQQQuestion :)memberMovieNinja11 Oct '05 - 15:17 
PS: I'm particularly interested in C++/MFC like u used in this project... I don't know C# yet.
Thanx.
 
- Me again
Generaldoes not work behind a proxy...sussanonymous19 Sep '05 - 19:38 
CALIN, DU-TE-N PIZDA MÃTII DE SCÂRBOS SI ÎMPUTIT.
IESI AFARÃ DIN CODEPROJECT, FUTU-TE-N-CUR PE MÃTA
 
Translation :
 
it does not work at all behind a proxy, needs a https direct connexion, can't be setted in anyway, it's a bad executable, with a bad target in mind..
 
Moderator, please get him out from here !
 
If he needs to sell something, tell him to pay ads in codeproject, thousands of people will read him, isn't it?
GeneralRe: does not work behind a proxy...memberCatalin Stavaru19 Sep '05 - 22:28 
Hi,
 
Thank you for your interest in DynAdvance Notifier. For a long time after this article was published, the program was free. The latest version, which you can download from http://www.dynadvance.com works ok with a proxy. The program uses the proxy settings of Internet Explorer. It also works with password-protected proxies.

Questionwhy publish this program ?memberedg_HH5 Jun '05 - 3:44 
I agree on many of the comments.
What is the authors idea by publishing an .exe file ?
No source, no tutorial, no description...?
 
A linkt to http://www.dynadvance.com/ and BUY NOW ???
 
If you want to sell something please use some other kind of communicationchannels !!!
 
I want to recall Mr. Stavaru, what CodeProject stand for :
http://www.codeproject.com/info/guide.asp :
 
"So what is 'The Code Project'?
 
The Code Project is a community of Visual Studio .NET developers joined together with a common goal: To learn, to teach, to have fun programming. Developers from all over the world come together to share source code, tutorials and knowledge for free to help their fellow programmers.
"
 
Do you really think your article comply to this ???
 
Erik Damgaard
AnswerRe: why publish this program ?memberCatalin Stavaru5 Jun '05 - 7:40 
Hi,
 
When the article was first published, the program was free. Things changed since then. The program is published under the "Free Tools" section, where there are tools with or without source code, to help developers.
 
If someone asked me how to do some things that the notifier does, I have answered with technical details.

GeneralRe: why publish this program ?sussDiógenes12 Aug '05 - 1:31 
Why anyone buy this program? The Mozilla Firefox have an extension that Gmail (or another system) notifier, it's 100% free and only 100k.
GeneralRe: why publish this program ?memberCatalin Stavaru12 Aug '05 - 2:02 
Not all people like to keep their browser open in order to be notified of new email. DynAdvance Notifier supports Gmail, Yahoo, Hotmail - all with double-click auto-login feature, POP3/SSL, IMAP/SSL. The extension is nearly useless compared to DynAdvance Notifier.

GeneralNo Source & Internet Connection Errormembercrouchie199818 Apr '05 - 14:57 
The idea of this website is to host the code to share with others & not to sell an exe
 
0/5 from me
 
Crouchie1998
BA (HONS)MCP MCSE
GeneralRe: No Source & Internet Connection ErrormemberCatalin Stavaru18 Apr '05 - 20:44 
Hi,
 
At the time of posting the article, the exe was free.

Generalsource codememberxdx0075 Nov '04 - 6:20 
Well I hope that the author could show to us his source code.
Well I think at some time he's used some code from this web 'n I think he can contribute with his code now, or Well I think so
 
Xdx's borning¡¡¡¡¡
GeneralAHH! it opens up IE instead of Firefoxsussgizsre13 Oct '04 - 7:38 
How can we specify browser?
 

GeneralRe: AHH! it opens up IE instead of FirefoxmemberCatalin Stavaru13 Oct '04 - 8:02 
MailNotifier uses the default browser. Just go to FireFox configuration and set it as the default browser. FireFox will be used then. But Gmail auto-login only works for IE.

Generalinternet error / login errormemberSGarratt19 Aug '04 - 7:04 
using ver 1.0.1
 
app looks cool (same comments about source though -even if it is in free tools) - gave it my verifed gmail login and all it ever says is "internet access error" or "login error". When I go to edit account properites the password field has more dots than I have password characters - so I wonder if there is some cryptoapi failure. Or perhaps google/gmail broke your interface. Also, please let View Email/double click functionality use a new browser windows and not hijack and existing browser window if possible.
 
using XP sp1, IE 6 fully patched.
 
Please fix it or let me know what I am doing wrong. And please release the source. With respect, most of us here are good at MFC/Wininet so I dont think there is any value in holding the source. Theres more value in being a good CP'er. Poke tongue | ;-P
 
SGarratt
GeneralRe: internet error / login errormemberCatalin Stavaru19 Aug '04 - 10:08 
Please go to www.dynadvance.com and get the latest version. LOTS of things have changed since 1.0.1...Smile | :)
 

GeneralRe: internet error / login errorsuss__me1 Mar '05 - 22:13 
I havent tried it yet, so I cant say anything about the first concern (login error). Opening the HTTP Request in a new browser window is a setting for the browser itself (at least in Firefox, I didnt look for it in IE). In firefox You can do Tools->Options->Advanced->Tabbed Browsing and there set up whether links from other applications are opened in a new window or in the last one. I suppose IE has some similar setting too.
GeneraldumbsussLabrat0021 Aug '04 - 17:09 
that is so dumb... No source and no support for proxy...
GeneralRe: dumbmemberCatalin Stavaru2 Aug '04 - 1:13 
The product HAS proxy support. Just set a valid proxy in Internet Explorer and the product will use that proxy.

Generalone question!sussMr.Prakash23 Jul '04 - 18:09 
how can i be sure that you are not steeling my login and password
 

I'll write a suicide note on a hundred dollar bill - Dire Straits
GeneralRe: one question!memberCatalin Stavaru23 Jul '04 - 22:53 
You can use a firewall to see what sites I am accessing. You will see that only gmail site is accessed by the program. Or you can just trust the fact that very few people are ready to sacrifice their dignity for a stolen password...

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

Permalink | Advertise | Privacy | Mobile
Web02 | 2.6.130523.1 | Last Updated 12 Jul 2004
Article Copyright 2004 by Catalin Stavaru
Everything else Copyright © CodeProject, 1999-2013
Terms of Use
Layout: fixed | fluid