9.1 Create JavaMail Session

This topic explains creating the JavaMail session in the Oracle weblogic server.

To configure the mail session, perform the follwing:
  1. Click Mail Session from the Domain Structure in the left pane.
    The following screen is displayed.

    Figure 9-1 Summary of Mail Sessions



  2. Click Lock & Edit in the Change Center to enable all the buttons in this page.
    The following screen is displayed.

    Figure 9-2 Summary of Mail Sessions_Lock & Edit



  3. Click New to create a new session.
    The following screen is displayed.

    Figure 9-3 Create a New Mail Session



  4. Specify the Name of the Mail Session.
    Sample details are given below:
    • Name: FCUBSMailSession
    • JNDI Name: mail/FCUBSMail

    TRADE This JNDI name needs to be maintained in fcubs.properties file with encrypted format.

    Java Mail Properties

    mail.host=<HOST_MAIL_SERVER>

    Eg: samplename.mail.com

    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.mail.com

  5. Click Next.
    The Following screen is displayed.

    Figure 9-4 Create a Mail Session - Mail Session Targets



  6. Select the Required Servers and click Finish to complete the configuration.
    TRADE fcubs.properties file needs to be updated with the encrypted values of
    • SMTP_HOST
    • SMTP_USER
    • SMTP_PASSWORD
    • SMTP_JNDI
  7. Click Active Changes to activate the current mail session settings.
    The following screen is displayed.

    Figure 9-5 Mail Sessions_Activate Changes