en.help.task-javamailsessionsedit.html Maven / Gradle / Ivy
Show all versions of console-common-full-plugin-help
To Edit a JavaMail Session
- In the navigation tree, expand the Resources node.
- Under the Resources node, select JavaMail Sessions.
The JavaMail Sessions page opens.
- On the JavaMail Sessions page, click the name of the session that you
are editing.
The Edit JavaMail Session page opens.
- In the Mail Host field, specify the host name of the default
mail server.
The connect methods of the Store and Transport objects use this value if
a protocol-specific host property is not supplied. The name must be resolvable to
an actual host name.
- In the Default User field, type another user name to provide when connecting
to a mail server.
The connect methods of the Store and Transport objects use this value if
a protocol-specific username property is not supplied. The user name must contain only
alphanumeric, underscore, dash, or dot characters.
- In the Default Sender Address field, type the e-mail address of the default
user.
The format is username@host.domain.
- In the Description field, change the description for the mail session.
- Select the Status Enabled checkbox to enable the mail session.
The default value is Enabled.
- In the Store Protocol field, define the Store object communication method to be
used.
By default, the Store Protocol is imap.
- In the Store Protocol Class field, specify the Store communication method class that
implements the desired Store protocol.
By default, the Store Protocol Class is com.sun.mail.imap.IMAPStore.
- In the Transport Protocol field, specify the transport communication method.
By default, the Transport Protocol is smtp.
- In the Transport Protocol Class field, specify the communication method for the Transport
class.
By default, the Transport Protocol Class is com.sun.mail.smtp.SMTPTransport.
- Select the Debug checkbox to enable extra debugging output, including a protocol trace,
for this mail session.
If the JavaMail log level is set to FINE or finer, the debugging
output is generated and is included in the system log file. See To Configure Log Levels
for information about setting the log level.
- (Optional) In the Additional Properties table, specify additional properties required by applications, such as
a protocol-specific host or username property.
For a list of the available properties, see JavaMail API documentation. Additional properties must begin with
mail- and must use hyphens, not periods, as separators. For example, mail-debug is
correct, but mail.debug is not. The GlassFish Server back end converts the
hyphens into the periods expected by the JavaMail API.
- To add a property, click the Add Property button. In the blank row
that appears, type the property name in the Name field, and type
the property value in the Value field.
- To modify a property, edit that property's Value field.
- To delete a property, select the checkbox to the left of the
Name field of the property that you are deleting, then click the Delete
Properties button.
- Click Save.
Tip - To return to the default settings, click the Load Defaults button, then click
Save.
See Also
Copyright © 2005, 2011, Oracle and/or its affiliates. All rights reserved. Legal Notices