uCosminexus Application Server, Application Development Guide

[Contents][Glossary][Index][Back][Next]

Appendix M. Examples of Using JavaMail

You can use a JavaMail in a Web application or EJB application. This appendix describes how to send JavaMail. To send JavaMail:

  1. Acquire a Session object
  2. Create a message
  3. Send the message

Note that the package names of the following classes are omitted hereafter:

Organization of this section
M.1 Acquiring a Session object
M.2 Creating messages
M.3 Sending messages
M.4 Notes on specifying the e-mail address