Professional Documents
Culture Documents
03 Javamail Sendmail EXC
03 Javamail Sendmail EXC
Unit: Javamail
Topic: Send mail using the Javamail API
1. Development Objectives
Creating a J2EE Project and use the Javamail API to send an e-mail message. The
J2EE Project will contain an EAR application and a WAR application. The Web
Application will have a Servlet which will make use of the Javamail API Classes
to send an e-mail message to a SMTP Server. The Web Project also contains a
HTML form used to get the user input for receiver’s e-mail address, Subject and
Message Text.
2. Prerequisites
2-1 You have configured the Java mail client service tab in the Visual
Administrator and have set the SMTP Server and sender’s details. (It is
necessary to restart the server once the java mail client service properties
are changed)
2-2 You have launched the Netweaver Developer Studio.
2-3 You have selected the J2EE perspective.
3. Exercise Guide
Enter the details on the form and hit Ok to send the mail.