This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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: 41124
    
  45
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Processing received emails with a servlet?
 
Similar Threads
please send me code 4 email through servlets
servlet initialization in JSP
send email from servlet
how to send email in jsp?
Open the same browser window from a hyperlink in email.