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