Uploaded image for project: 'OpenAM'
  1. OpenAM
  2. OPENAM-8327

Unable to send e-mail via Google SMTP with SSL enabled

    Details

    • Sprint:
      AM Sustaining Sprint 17
    • Support Ticket IDs:

      Description

      Steps to reproduce:

      • configure user self service
      • configure email service with your Google account settings
      • Attempt to register a new account using the XUI login pages

      The end result is going to be a big stacktrace in the CoreSystem logs along the lines of:

      Caused by: javax.mail.MessagingException: Could not connect to SMTP host: smtp.gmail.com, port: 465, response: -1
              at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:2042)
              at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:697)
              at javax.mail.Service.connect(Service.java:386)
              at javax.mail.Service.connect(Service.java:245)
              at javax.mail.Service.connect(Service.java:194)
              at javax.mail.Transport.send0(Transport.java:253)
              at javax.mail.Transport.send(Transport.java:124)
              at com.iplanet.am.util.AMSendMail.postMail(AMSendMail.java:202)
              at org.forgerock.openam.services.email.MailServerImpl.sendEmail(MailServerImpl.java:189)
              at org.forgerock.openam.services.email.MailServerImpl.sendEmail(MailServerImpl.java:164)
              at org.forgerock.openam.forgerockrest.IdentityResourceV2.sendNotification(IdentityResourceV2.java:453)
              ... 66 more
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                peter.major Peter Major [X] (Inactive)
                Reporter:
                peter.major Peter Major [X] (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 2h
                  2h
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1h Time Not Required
                  1h