# External Mail-Integration

## Configuring the JavaClient for External Mailing

| Please note that the following description and instruction only applies for Windows operating systems!
| Using the external mail function with the JavaClient can cause problems if a used connector is not 100% compatible with MAPI. The result will be a crash of the Client after sending the mail. In the default use case for the JavaClient the external mailer is linked to the java.exe. Therefore, if the external mail client crashes because of an incompatible connector, the Java virtual machine (VM) will also crash.
| This behavior can be eluded by avoiding using the EXM dlls and using hte EXM executable instead. The use case is now switchable with a default value EXM-USE-CASE. The following two values are accepted: "exe" "dll"
| The GLOBAL value of the default will be set to "dll", which will use the dlls in case of the JavaClient and the executable in case of the DTV Client. If the default is set to "exe", the executable will also be used in case of the JavaClient.
| In case of compatibility problems with a mail connector (Javaclient crash during mail) it is recommended to set the default value to "exe" and add the concerning libraries from agile-exm-native.jar to a new directory (e.g. d:\programs\Client). The agile-exm-native.jar can be found in the directory ep_root/axalant/bin/java/intel-ms-nt5.1/.
| We recommend to create your own external mail directory (e.g. exm) and add this to the system path!
| The following libraries should be added to the directory described above. The easiest way to get those libraries is to extract the agile-exm-native.jar with a zip program. epclt_eci_vc7.dll epclt_exm_vc7.dll epshr_apr_vc7.dll epshr_eci_vc7.dll epshr_vc7.dll exm_cli_vc7.exe libapr-1_vc7.dll zlib1_vc7.dll
| Add the missing libraries from the <EP_ROOT>\axalant\bin\intel-ms-nt5.1 directory to the new directory.