954,536 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Java email notifier

Hey all,
For sort of a final project, I want to build a program in Java (if it's possible) that works much like the GMail Notifier except I want to make it popup a notification if I receive a new email in my yahoo, hotmail, or google accounts. Does anybody know how this can be accomplished? Basically, I just need to know how to connect with each of the email servers (if it's posible) and return true if there is new mail at that email address. Thank you ahead of time.

-Nick Nisi

stupidenator
Junior Poster
192 posts since Mar 2005
Reputation Points: 18
Solved Threads: 4
 

Check out JavaMail. It's a complete email API for Java, can work with just about any protocol (SMTP and POP3 are built in, MAPI and IMAP too I think).

jwenting
duckman
Team Colleague
8,392 posts since Nov 2004
Reputation Points: 1,662
Solved Threads: 337
 

i've been reading about JavaMail and I'm a little confused. can you please give me some example code to help explain it?

Thanks,
Ian

Oh yeah, I understand if you think I'm just hunting for source code - but I'm not. I just wanted a little code to point me in the right direction.

Ghost
Posting Whiz
352 posts since Aug 2004
Reputation Points: 12
Solved Threads: 2
 

Ya, I'm with C++ on that. I downloaded the JavaMail API and it didn't make too much sense to me either.

stupidenator
Junior Poster
192 posts since Mar 2005
Reputation Points: 18
Solved Threads: 4
 

hmm, it's not that hard :)

I think there's a sample in the J2EE documentation. If not get the book "the art of Java" ISBN 0072229713 which contains a complete EMail client created using JavaMail and Swing (as well as some very interesting other applications showing off some of the things Java can do that many people never realise).

jwenting
duckman
Team Colleague
8,392 posts since Nov 2004
Reputation Points: 1,662
Solved Threads: 337
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You