Logo of Bento frameworkspaceObject Oriented Programming


JBuilder 2007

Pop3Receiver

Free source code example for Bento framework...

Seeing is believing! First of all, please enjoy the example of Bento framework that is running on our web site. It is the simple photo Blog where you can upload the image files by your web browser (multipart/form-data), or e-mail with file attachment. After you grasp how it works, please explore its source code. The source code of the example is included in the FREE trial version of Bento framework.

[ Try and download example ... ]

How to upload files by e-mail ...

The typical web browsers can upload the files through multipart/form-data, but the WAP browsers on the mobile phone are not always ready for the CGI FORM with multipart/form-data. In these days, a large number of the mobile phones are shipped with the digital cameras, i.e. the users can take the pictures by their mobile phones and send them to their friends by the e-mails. By the help of this Java API, the web applications can receive the e-mails with file attachment and save the files on the server side.

How it works?

This API runs the background Thread, which connects to the series of POP3 servers at the specified time interval. For each incoming e-mail, the background Thread calls:

MailReceiver is just the interface, and you can implement it for your requirement. The parameter of the above method is ReceivedMail object, which represents the details of each incoming e-mail. Through the methods on ReceivedMail, and the implementation of MailReceiver can get the text body, FROM address and even the file attachment.

Read Java doc / FREE Download

You can read the Java doc for this API online. Or it is included in the trial version of this API and you can download it at FREE.

Java doc README
Trial License Product License (PDF)
Download

Copyright © 1997-2008 OOP-Research CorporationTM, All Rights Reserved.

Valid XHTML 1.0! Valid CSS!