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

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 1.0.0
    • 1.5.0
    • None

    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

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

            Dates

              Created:
              Updated:
              Resolved: