9.1 Create JavaMail Session

This topic explains the steps to create JavaMail Session.

  1. Start the Administration Console of WebLogic Application server.
    You can start the Application by opening the Oracle Weblogic Remote Console application post installing the application from the link https://github.com/oracle/weblogic-remote-console/releases.
    The WebLogic Remote Console screen is displayed.
  2. Go to Services and then select Mail Sessions.
    The Mail Sessions screen is displayed.
  3. Click New to create a new Mail Session.
  4. Click Create.
    The following screen is displayed.

    Figure 9-2 Create a New Mail Session



  5. Specify the Name and JNDI Name.
    Examples:
    Name as FCISMailSession and JNDI Name as mail/FCISMail.

    Note:

    This JNDI name needs to be maintained in fcubs.properties file with encrypted format.
  6. On the Java Mail Properties tab, specify the details and save.

    Java Mail Properties

    mail.host=<HOST_MAIL_SERVER>

    Eg: samplename

    mail.smtps.port=<SMTPS_SERVER_PORT>

    Eg: 1010

    mail.transport.protocol=<MAIL_TRANSFER_PROTOCOL>

    Eg: smtps

    mail.smtps.auth=true

    mail.smtps.host==<HOST_SMTPS_MAIL_SERVER>

    Eg: samplename

  7. Click the Targets tab.
    The following screen is displayed.
  8. Select the required servers and click Save.
    fcubs.properties file needs to be updated with the encrypted values of:
    • SMTP_HOST
    • SMTP_USER
    • SMTP_PASSWORD
    • SMTP_JNDI
  9. Click the Cart icon to view, commit, or discard the changes.
    The following screen is displayed.
  10. Select Commit Changes option to apply the changes.
    The Changes were successfully committed is displayed on committing the changes.

    Figure 9-6 Changes Committed Message