!--a11y-->
JavaMail Tutorial 
This tutorial describes the basic steps you have to take to create the JavaMail example. You can find the source files of the example under <DeveloperStudio_install_dir>\eclipse\examples\J2EE_JavaMail.zip.
The tutorial’s example is based mainly on servlets. However, mail sending (SMTP) has an alternative realization with a stateful session EJB:
Scheme of the Example

By the end of this tutorial you will be able to:
● Use the J2EE Engine JavaMail API implementation.
● Use the mail functionality in an application.
● SAP NetWeaver Developer Studio is installed.
● J2EE Engine is installed.
● JDK 1.4 of the SUN Microsystems is installed.
● You have administrative privileges to manage the configuration of the applications on the J2EE Engine.
● Java programming language and JAAS authentication model.
The steps are:
...
4. Generating Files for Deployment
5. Deploying the EAR and starting the JavaMail example

The source of each file you have to create is located in the …/SAP/JDT/eclipse/examples/JavaMail.zip file. For each file, we assume that you use the source of the corresponding file in this JavaMail.zip.
All the examples are written in the J2EE Development Perspective of the SAP NetWeaver Developer Studio, under the J2EE Explorer view.