Uploaded image for project: 'TomEE'
  1. TomEE
  2. TOMEE-407

JavaMail javax.mail.Session resources do not work with authentication

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 1.0.0
    • Fix Version/s: 1.5.0
    • Component/s: None
    • Labels:

      Description

      Based on:
      http://openejb.979440.n4.nabble.com/javax-mail-Session-resource-and-smtp-authentication-td4322915.html
      http://openejb.979440.n4.nabble.com/JavaMail-Session-with-Authentication-tp4657144.html

      javax.mail.Session resources created by TomEE do not use the provided authentication parameters.

      With the instructions from http://tomee.apache.org/configuring-javamail.html, the password property is not taken into account.

      According to JavaMail's javadoc (http://javamail.kenai.com/nonav/javadocs/com/sun/mail/smtp/package-summary.html), a PasswordAuthenticator instance should be passed to Session.getInstance() when retrieving the javamail session.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              berniegp Bertrand Guay-Paquet
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: