File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes EJB and other Java EE Technologies and the fly likes Redirecting incoming mail to JAVA application Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Redirecting incoming mail to JAVA application" Watch "Redirecting incoming mail to JAVA application" New topic
Author

Redirecting incoming mail to JAVA application

Harish Tiruvile
Ranch Hand

Joined: Dec 01, 2005
Posts: 99
Hi all,

I want to do an application which will redirect incoming mail to one perticular mail ID to JAVA application .


My question:IS it possible for JAVA application to listen for incoming mail ? After listening it should retrieve information present in mail..we can do it in JAVA application,if we can, then please guide me which API i should use

I want to read mail's subject line,body part,to & from part and store those information in XL-sheet\HTML...

Here i know how to send mail(using JavaMail API) and how to store data in XL-sheet(using POI),but i dont know how to listen,or extract mails subject line ,body part , by java application...

if anybody knows please assist me.
[ August 27, 2006: Message edited by: harish thrivile ]

Giving up is the easiest thing in the world to do..but holding it together when everything seems like falling apart is true strength!!
with regards, Harish.T
Masoud Kalali
Author
Ranch Hand

Joined: Jul 08, 2004
Posts: 531

hi
you can retrieve emails from pop servers using javaMail API , you can find code samples and tutorial here :
http://www.jscape.com/articles/retrieving_email_using_java.html


Masoud Kalali
Software Engineer - My Weblog - GlassFish Security
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Redirecting incoming mail to JAVA application
 
Similar Threads
XML and Database save
Attachment FileName not displaying UTF-8 characters correctly
from where to download org.apache.poi.hssf.usermodel package???????
Spam score API for java mail
Adding a css template to java mail