Testing connectivity between the application server and
mail server allows you to check if the information you have entered
in the E-mail Listener application is correct. You use the TestEmail.bat file
to test connectivity.
Before you begin
If you use
WebLogic
Server,
download the
mail.jar file and the
activation.jar file
from a site for downloading open source Java code.
Procedure
- Navigate to the \IBM\SMP\maximo\tools\maximo\internal folder
and download the TestEmail.bat file.
- Prepare to run the command.
Application server |
Procedure |
WebSphere® Application Server |
- Open the TestEmail.bat file in a text editor.
- Add the mail-impl.jar variable into the class path of the WebSphere Application Server folder
by setting CLASSPATH=C:\IBM\WebSphere\AppServer\lib\mail-impl.jar;
..\applications\maximo\lib\j2ee.jar; ..\classes.
|
WebLogic
Server |
Copy the mail.jar file and activation.jar file
to the\IBM\SMP\maximo\tools\java\jre\lib\text folder.
|
- Open a command prompt, navigate to the IBM\SMP\Maximo\tools\maximo\internal folder,
and run the testemail hostname port email_account password
protocol debug command.
- Check that the output contains the phrase connected
to e-mail account.
- If the output does not contain the phrase, check the Java
exception that is created. For example, the connection can fail if
an invalid user name or invalid host name was entered.
Results
The
TestEmail.bat file has the following
output:
**Email text: Connected to e-mail account email_account
DEBUG: setDebug: JavaMail version 1.3.2
DEBUG: getProvider() returning
javax.mail.Provider[STORE.imap.com.sun.mail.imap.IMAPStore.Sun Microsystems. Inc]
The Microsoft Exchange IMAP4 service is ready
*CAPABILITY IMAP4 IMAP4rev1 AUTH=NTLM AUTH=GSSAPI AUTH=PLAIN STARTTLS IDLE NAME
SPACE LITERAL*