SAP Knowledge Base Article - Preview

3500322 - Error: javax.mail.AuthenticationFailedException when Sending Email via Office365 Smtp Server

Symptom

When trying to send out an email via office365 smtp server in Commerce cloud, the following error can can be seen in logs

Caused by: javax.mail.AuthenticationFailedException: 535 5.7.139 Authentication unsuccessful, the user credentials were incorrect. [FR4P281CA0401.DEUP281.PROD.OUTLOOK.COM 2024-07-15T09:21:53.788Z 08DCA45866061464]

    at com.sun.mail.smtp.SMTPTransport$Authenticator.authenticate(SMTPTransport.java:947)
    at com.sun.mail.smtp.SMTPTransport.authenticate(SMTPTransport.java:858)
    at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:762)
    at javax.mail.Service.connect(Service.java:364)
    at javax.mail.Service.connect(Service.java:222)
    at javax.mail.Service.connect(Service.java:171)
    at javax.mail.Transport.send0(Transport.java:230)
    at javax.mail.Transport.send(Transport.java:100)
    at org.apache.commons.mail.Email.sendMimeMessage(Email.java:1459)
    ... 149 more


Read more...

Environment

SAP Commerce Cloud

Product

SAP Commerce Cloud all versions

Keywords

hybris, ccv2, Sending the email to the following server failed: smtp.office365.com:587 , KBA , CEC-SCC-PLA-PL , Platform , Problem

About this page

This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP for Me (Login required).

Search for additional results

Visit SAP Support Portal's SAP Notes and KBA Search.