JavaMail models an e-mail and messaging service.The JavaMail APIs provide a platform and protocol independent framework to build Java technology-based mail and messaging applications. JavaMail requires the Java Activation Framework (JAF) to deal with complex data types as, for example, MIME (Multipurpose Internet Mail Extensions).
Mail sessions are represented by the javax.mail.Session class. The "session" object validates a JavaMail user, and controls the user's access to the message storage and transport services.