wood burning stoves 2.0*
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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
Adding a css template to java mail
XML and Database save
from where to download org.apache.poi.hssf.usermodel package???????
Attachment FileName not displaying UTF-8 characters correctly
Spam score API for java mail