javax.mail.AuthenticationFailedException: 535 5.7.3 Authentication unsuccessful [SG2PR06CA0118.apcprd06.prod.outlook.com]

Anonymous
2018-08-13T03:10:29+00:00

I have tried changing the password but nothing worked. Please provide an update. 

Email log from my Java application is below.

DEBUG: setDebug: JavaMail version 1.4.7

Current processing batch no:1

Sending BCC e-mail.

Sending to SMTP server ....

DEBUG: getProvider() returning javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Oracle]

DEBUG SMTP: useEhlo true, useAuth true

DEBUG SMTP: useEhlo true, useAuth true

DEBUG SMTP: trying to connect to host "smtp.office365.com", port 587, isSSL false

220 SG2PR06CA0118.outlook.office365.com Microsoft ESMTP MAIL Service ready at Mon, 13 Aug 2018 03:07:08 +0000

DEBUG SMTP: connected to host "smtp.office365.com", port: 587

EHLO <IP>

250-SG2PR06CA0118.outlook.office365.com Hello [IP]

250-SIZE 157286400

250-PIPELINING

250-DSN

250-ENHANCEDSTATUSCODES

250-STARTTLS

250-8BITMIME

250-BINARYMIME

250-CHUNKING

250 SMTPUTF8

DEBUG SMTP: Found extension "SIZE", arg "157286400"

DEBUG SMTP: Found extension "PIPELINING", arg ""

DEBUG SMTP: Found extension "DSN", arg ""

DEBUG SMTP: Found extension "ENHANCEDSTATUSCODES", arg ""

DEBUG SMTP: Found extension "STARTTLS", arg ""

DEBUG SMTP: Found extension "8BITMIME", arg ""

DEBUG SMTP: Found extension "BINARYMIME", arg ""

DEBUG SMTP: Found extension "CHUNKING", arg ""

DEBUG SMTP: Found extension "SMTPUTF8", arg ""

STARTTLS

220 2.0.0 SMTP server ready

EHLO 192.168.5.141

250-SG2PR06CA0118.outlook.office365.com Hello [115.42.245.38]

250-SIZE 157286400

250-PIPELINING

250-DSN

250-ENHANCEDSTATUSCODES

250-AUTH LOGIN XOAUTH2

250-8BITMIME

250-BINARYMIME

250-CHUNKING

250 SMTPUTF8

DEBUG SMTP: Found extension "SIZE", arg "157286400"

DEBUG SMTP: Found extension "PIPELINING", arg ""

DEBUG SMTP: Found extension "DSN", arg ""

DEBUG SMTP: Found extension "ENHANCEDSTATUSCODES", arg ""

DEBUG SMTP: Found extension "AUTH", arg "LOGIN XOAUTH2"

DEBUG SMTP: Found extension "8BITMIME", arg ""

DEBUG SMTP: Found extension "BINARYMIME", arg ""

DEBUG SMTP: Found extension "CHUNKING", arg ""

DEBUG SMTP: Found extension "SMTPUTF8", arg ""

DEBUG SMTP: Attempt to authenticate using mechanisms: LOGIN PLAIN DIGEST-MD5 NTLM 

AUTH LOGIN

334 VXNlcm5hbWU6

dGVzdC13c2hjQHRhbC5zZw==

334 UGFzc3dvcmQ6

RGFqMTc3NjM=

535 5.7.3 Authentication unsuccessful [SG2PR06CA0118.apcprd06.prod.outlook.com]

javax.mail.AuthenticationFailedException: 535 5.7.3 Authentication unsuccessful [SG2PR06CA0118.apcprd06.prod.outlook.com]

Going to sleep for 1min(s)

at com.sun.mail.smtp.SMTPTransport$Authenticator.authenticate(SMTPTransport.java:826)

at com.sun.mail.smtp.SMTPTransport.authenticate(SMTPTransport.java:761)

at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:685)

at javax.mail.Service.connect(Service.java:317)

at javax.mail.Service.connect(Service.java:176)

at javax.mail.Service.connect(Service.java:125)

at javax.mail.Transport.send0(Transport.java:194)

at javax.mail.Transport.send(Transport.java:124)

Outlook | Windows | Classic Outlook for Windows | For home

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments
{count} votes

13 answers

Sort by: Most helpful
  1. Anonymous
    2018-08-13T04:48:01+00:00

    Do you mean I need to get assistant from Java forum or TLS has to be configured at my server side?

    1 person found this answer helpful.
    0 comments No comments
  2. Anonymous
    2018-08-13T12:48:58+00:00

    Hi test-wshc,

    Given that your problem is related to code issue, to better help you, we recommend you to contact our dedicated MSDN forum to get targeted help:

    https://social.msdn.microsoft.com/forums/en-us/home

    Your time and understanding will be highly appreciated.

    Best Regards,

    Huni

    0 comments No comments
  3. Anonymous
    2018-08-13T14:07:11+00:00

    Can you try the third option?

    1 person found this answer helpful.
    0 comments No comments