Java Mail API Tutorial

Java Mail API Tutorial
The JavaMail API provides a platform-independent and protocol-independent framework to build mail and messaging applications. The JavaMail API is available as an optional package for use with the Java SE platform and is also included in the Java EE platform.

The JavaMail is an API that is used to compose, write and read electronic messages (emails).

The JavaMail API provides protocol-independent and plateform-independent framework for sending and receiving mails.

The javax.mail and javax.mail.activation packages contains the core classes of JavaMail API.

The JavaMail facility can be applied to many events. It can be used at the time of registering the user (sending notification such as thanks for your interest to my site), forgot password (sending password to the users email id), sending notifications for important updates etc. So there can be various usage of java mail api.


Following are some of the protocols supported in JavaMail API:



Architecture
As said above the java application uses JavaMail API to compose, send and receive emails.The following figure illustrates the architecture of JavaMail:
Java Mail API

The abstract mechanism of JavaMail API is similar to other J2EE APIs, such as JDBC, JNDI, and JMS. As seen the architecture diagram above, JavaMail API is divided into two main parts:



Table of Contents-
  1. JavaMail API Environment Setup
  2. JavaMail API Core Classes
  3. Sending Email JavaMail API
  4. Sending Email through Gmail Server
  5. JavaMail API Receiving email
  6. JavaMail API Sending email with attachment
  7. JavaMail API Receiving email with attachment
  8. JavaMail API Sending email with Html content
  9. JavaMail API  Sending Email With Inline Images
  10. JavaMail API Forwarding Emails
  11. JavaMail API Deleting Emails
  12. JavaMail API Replying Emails
  13. JavaMail API Authentication





<<Previous <<   || Index ||   >>Next >>









Labels: