wood burning stoves 2.0*
The moose likes Other JSE/JEE APIs and the fly likes Processing received emails with a servlet? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Bookmark "Processing received emails with a servlet?" Watch "Processing received emails with a servlet?" New topic
Author

Processing received emails with a servlet?

James Hodgkiss
Ranch Hand

Joined: Jan 22, 2004
Posts: 401
Hiya,

Is it possible to create a servlet that:

1. Checks a POP mail server for new email
2. Retrieves that email
3. Extracts any attached files from the email
(then processes that file...)

If it is, can anyone point me in the direction of the APIs I'd need and, if poss, any sample code?

Cheers,
James
karthikeyan Chockalingam
Ranch Hand

Joined: Sep 06, 2003
Posts: 259
http://java.sun.com/products/javamail/


http://www.skillassert.com


winay Kumar
Ranch Hand

Joined: Aug 13, 2007
Posts: 34
Hi,

check javax.mail* packages...
i do not know whether this suffices your requirement or not


Winay Kumar<br />SCJP 5.0
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42035
    
  64
Yes, all this is possible. The JavaMail API is what you would use. The http://faq.javaranch.com/java/JavaEnterpriseEditionFaq has various links to useful material, including a detailed JavaMail introduction courtesy of Sun.


Ping & DNS - my free Android networking tools app
 
GeeCON Prague 2014
 
subject: Processing received emails with a servlet?