This chapter describes the tasks you can perform to create, monitor, and configure mail sessions. Mail sessions facilitate the process of using the JavaMail APIs, which provide applications and other Java EE modules with access to Internet Message Access Protocol (IMAP)- and Simple Mail Transfer Protocol (SMTP)-capable mail servers on your network or the Internet.
This chapter includes the following sections:
To create a new mail session:
From the WebLogic Domain dropdown menu, select Other Services, then select Mail Sessions.
The Mail Sessions table displays information about the mail sessions that have been configured in the current WebLogic Server domain.
Click Create.
Define the configuration settings for your new mail session on each of the following pages:
Click Create.
On the General Configuration page, you can define general configuration settings for your new mail session:
Name: enter the desired name for your new mail session.
Scope: select the scope for this mail session (Global, Resource Group Template, or domain resource group Partition)
JNDI Name: enter a unique JNDI name for this new mail session.
Session Username: enter the desired username credentials for this new mail session.
Session Password/Confirm Session Password: enter and confirm the desired password credentials for this new mail session.
Java Mail Properties: click Add to add properties to this new mail session and specify information for connecting to an existing mail server. Express each property as a name=value
pair.
For more information about these fields, see Configuration Options.
On the Targets page, select the servers and clusters on which you want to target this new mail session to.
For more information, see Configuration Options.
On the Review page, review the configuration for this mail session.
For more information, see Configuration Options.
To monitor the mail sessions configure in a domain:
From the WebLogic Domain dropdown menu, select Other Services, then select Mail Sessions.
The Mail Sessions table displays information about the mail sessions that have been configured in the current WebLogic Server domain, such as:
Name
JNDI Name
Scope
Resource Group/Template
Domain Partition
For more information about these fields, see Configuration Options.
Optionally, select View to access the following table options:
Columns: add or remove the columns displayed in the table
Detach: detach the table (viewing option)
Sort: sort the columns in ascending or descending order
Query by Example
The section describes how to configure mail sessions.
This section includes the following tasks:
To configure general settings for a mail session:
From the WebLogic Domain dropdown menu, select Other Services, then select Mail Sessions.
The Mail Sessions table displays information about the mail sessions that have been configured in the current WebLogic Server domain.
In the Mail Sessions table, select the mail session you want to configure.
Select the General page.
On the General page, you can view and define general configuration settings for the mail session, such as:
Name
Scope
JNDI Name
Session Username
Session Password
In the Java Mail Properties section, click Add and enter a Name and Value to add a new Java mail property to the mail session.
Click Apply.
For more information on these fields, see Configuration Options.
After you create a mail session, you assign (target) it to one or more server instances or clusters.
To specify the targets for a mail session:
From the WebLogic Domain dropdown menu, select Other Services, then select Mail Sessions.
The Mail Sessions table displays information about the mail sessions that have been configured in the current WebLogic Server domain.
In the Mail Sessions table, select the mail session you want to configure.
Select the Targets page.
On the Targets page, you can select the servers and clusters you want to target the mail session to. Select the checkbox next to the target name to specify the desired targets for this mail session.
Click Save.
For more information, see Configuration Options.
To configure tags associated with a mail session:
From the WebLogic Domain dropdown menu, select Other Services, then select Mail Sessions.
The Mail Sessions table displays information about the mail sessions that have been configured in the current WebLogic Server domain.
In the Mail Sessions table, select the mail session you want to configure.
Select the Tags page.
On the Tags page, you can select tags for this mail session by moving them from the Available column to the Chosen column. Additionally, you can enter a new tag in the Add new tag field.
Click Apply.
For more information, see Configuration Options.
To create notes for a mail session:
From the WebLogic Domain dropdown menu, select Other Services, then select Mail Sessions.
The Mail Sessions table displays information about the mail sessions that have been configured in the current WebLogic Server domain.
In the Mail Sessions table, select the mail session you want to configure.
Select the Notes page.
On the Notes page, enter your notes.
Click Save.
For more information, see Configuration Options.