!--a11y-->
JavaMail Tutorial 
This tutorial describes the basic steps you have to take to create the JavaMail example. You can view and start the original example on the Start page of the J2EE Engine under http://<host>:<port>/index.html ® J2EE Engine Examples ® JavaMail.
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.
The example uses the J2EE Engine JavaMail API implementation. However, it is used to demonstrate how the mail functionality can be used in an application.
The example is based mainly on servlets. However, mail sending (SMTP) has an alternative realization with a stateful session EJB:
Scheme of the Example

