uCosminexus Application Server, Application Development Guide
![[Contents]](FIGURE/CONTENT.GIF)
![[Glossary]](FIGURE/GLOSS.GIF)
![[Index]](FIGURE/INDEX.GIF)
![[Back]](FIGURE/FRONT.GIF)
You can use a JavaMail in a Web application or EJB application. This appendix describes how to send JavaMail. To send JavaMail:
- Acquire a Session object
- Create a message
- Send the message
Note that the package names of the following classes are omitted hereafter:
- javax.mail.NoSuchProviderException
- javax.mail.Session
- javax.mail.Transport
- javax.mail.MessagingException
- javax.mail.internet.MimeMessage
- javax.mail.internet.InternetAddress
- 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
All Rights Reserved. Copyright (C) 2012, 2013, Hitachi, Ltd.