Java Mail

JavaMail includes APIs and provides implementations that allows us to develop fully functional email client applications.

Java Mail

Java Mail

     

JavaMail includes APIs and provides implementations that allows us to develop fully functional email client applications. We can write our own Outlook replacement as "Email client applications" invokes thoughts of Microsoft Outlook. An email client need not necessarily be residing on a client machine but it could be a servlet or an EJB running on a remote server, providing end-user access to email through a Web browser. E.g. On Hotmail we can write our own version of Hotmail too. Or we can completely avoid a user interface. It defines how an auto-responder reads incoming messages and sends replies by customizing it according to the original sender.
  
Setup

Java 2 Platform, Enterprise Edition (J2EE) 1.3, includes JavaMail, therefore no additional setup is required, while Java 2 Platform, Standard Edition (J2SE) 1.1.7 and upwards versions, requires email capability for their applications. So to use these upwards version we have to download and install the following:

  • JavaMail
  • JavaBeans Activation Framework