All Downloads are FREE. Search and download functionalities are using the official Maven repository.

en.help.task-javamailsessionsedit.html Maven / Gradle / Ivy

The newest version!



To Edit a JavaMail Session

  1. In the navigation tree, expand the Resources node.
  2. Under the Resources node, select JavaMail Sessions.

    The JavaMail Sessions page opens.

  3. On the JavaMail Sessions page, click the name of the session that you are editing.

    The Edit JavaMail Session page opens.

  4. 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.

  5. 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.

  6. In the Default Sender Address field, type the e-mail address of the default user.

    The format is username@host.domain.

  7. In the Description field, change the description for the mail session.
  8. Select the Status Enabled checkbox to enable the mail session.

    The default value is Enabled.

  9. In the Store Protocol field, define the Store object communication method to be used.

    By default, the Store Protocol is imap.

  10. 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.

  11. In the Transport Protocol field, specify the transport communication method.

    By default, the Transport Protocol is smtp.

  12. 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.

  13. 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.

  14. (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.
  15. 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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy