Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

email notification popup box

Status
Not open for further replies.

RichS

Programmer
Apr 24, 2000
380
US
Does, any one know how to do an email notification popup like MSMessenger does? The one that comes up in the lower right corner of your desktop and tells you you have a new mail message from someone.

Rich
 
In a nutshell, my last post:

These notifications are built into the client application. That application starts up automatically when the machine starts up and sits there. When an email comes in to the server, the server sends a special code to the client on your machine which means "New Email". The client then opens up the notification box. It's exactly like chatting in the chat program. The chat program sends the text you chat, but also has special formatting and control codes for handling of that message. When you login, it has to send that to the server and the server has to know what to do with it, same with a private message versus a public message, a log out, and an incoming email or private message when the messenger is just running from the taskbar. When the client receives certain codes (and the server as well) then it performs a certain action, either 1)query for login, 2) accept login, 3) deny login, 4) display a chat message, 5) start a private chat, 6) update someone in your buddies list (or whatever) 7)send uyou profile info on someone, 8) show you a list of rooms, 9) show email notification, etc and so on.

The last time I wrote a chat program I did it in XML with s tructure like this:
Code:
<xmlchat>
   <header>
      <message_type>
      </message_type>
      <username>
      </username>
   </header>
   <body>
      <recipient>
      </recipient>
      <message>
      </message>
   </body>
</xmlchat>

I had a whole long list of types and there were actually more tags like password that would show up in certain message types (like login). My sercver and client would receive a message, parse the message_type and then handle it according to that. So in essence I could have written a code for email notification and added that to my cases in message_type handler.

Hope this doesn't confuse you, it was the result of way to much coffee
-Tarwn ------------ My Little Dictionary ---------
Reverse Engineering - The expensive solution to not paying for proper documentation
 
Not at all - it gives me a good start.

Thanks for reposting.

Rich
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top