Hi,
I have written an application to send emails via smtp.office365.com. I have a Business Basic license for the user and have enabled SMTP for the user in the admin portal. However i am getting the following error. I have tried both security defaults enabled and disabled.
Please help me resolve the issue.
Thanks,
2024-07-04 13:56:45] INFO [JeOAlJZGYM] Connection established to 52.96.88.50:587
[2024-07-04 13:56:45] DEBUG [JeOAlJZGYM] S: 220 MN2PR11CA0028.outlook.office365.com Microsoft ESMTP MAIL Service ready at Thu, 4 Jul 2024 13:56:44 +0000
[2024-07-04 13:56:45] DEBUG [JeOAlJZGYM] C: EHLO [127.0.0.1]
[2024-07-04 13:56:45] DEBUG [JeOAlJZGYM] S: 250-MN2PR11CA0028.outlook.office365.com Hello [98.158.98.196]
[2024-07-04 13:56:45] DEBUG [JeOAlJZGYM] S: 250-SIZE 157286400
[2024-07-04 13:56:45] DEBUG [JeOAlJZGYM] S: 250-PIPELINING
[2024-07-04 13:56:45] DEBUG [JeOAlJZGYM] S: 250-DSN
[2024-07-04 13:56:45] DEBUG [JeOAlJZGYM] S: 250-ENHANCEDSTATUSCODES
[2024-07-04 13:56:45] DEBUG [JeOAlJZGYM] S: 250-STARTTLS
[2024-07-04 13:56:45] DEBUG [JeOAlJZGYM] S: 250-8BITMIME
[2024-07-04 13:56:45] DEBUG [JeOAlJZGYM] S: 250-BINARYMIME
[2024-07-04 13:56:45] DEBUG [JeOAlJZGYM] S: 250-CHUNKING
[2024-07-04 13:56:45] DEBUG [JeOAlJZGYM] S: 250 SMTPUTF8
[2024-07-04 13:56:45] DEBUG [JeOAlJZGYM] C: STARTTLS
[2024-07-04 13:56:45] DEBUG [JeOAlJZGYM] S: 220 2.0.0 SMTP server ready
[2024-07-04 13:56:45] INFO [JeOAlJZGYM] Connection upgraded with STARTTLS
[2024-07-04 13:56:45] DEBUG [JeOAlJZGYM] C: EHLO [127.0.0.1]
[2024-07-04 13:56:45] DEBUG [JeOAlJZGYM] S: 250-MN2PR11CA0028.outlook.office365.com Hello [98.158.98.196]
[2024-07-04 13:56:45] DEBUG [JeOAlJZGYM] S: 250-SIZE 157286400
[2024-07-04 13:56:45] DEBUG [JeOAlJZGYM] S: 250-PIPELINING
[2024-07-04 13:56:45] DEBUG [JeOAlJZGYM] S: 250-DSN
[2024-07-04 13:56:45] DEBUG [JeOAlJZGYM] S: 250-ENHANCEDSTATUSCODES
[2024-07-04 13:56:45] DEBUG [JeOAlJZGYM] S: 250-AUTH LOGIN XOAUTH2
[2024-07-04 13:56:45] DEBUG [JeOAlJZGYM] S: 250-8BITMIME
[2024-07-04 13:56:45] DEBUG [JeOAlJZGYM] S: 250-BINARYMIME
[2024-07-04 13:56:45] DEBUG [JeOAlJZGYM] S: 250-CHUNKING
[2024-07-04 13:56:45] DEBUG [JeOAlJZGYM] S: 250 SMTPUTF8
[2024-07-04 13:56:45] DEBUG [JeOAlJZGYM] SMTP handshake finished
[2024-07-04 13:56:45] DEBUG [JeOAlJZGYM] C: AUTH LOGIN
[2024-07-04 13:56:45] DEBUG [JeOAlJZGYM] S: 334 VXNlcm5hbWU6
[2024-07-04 13:56:45] DEBUG [JeOAlJZGYM] C: cm9vdC5hZG1pbkBsaW5rMnRlYW1zdHJpYWwuY29t
[2024-07-04 13:56:45] DEBUG [JeOAlJZGYM] S: 334 UGFzc3dvcmQ6
[2024-07-04 13:56:45] DEBUG [JeOAlJZGYM] C: Lyogc2VjcmV0ICov
[2024-07-04 13:56:53] DEBUG [JeOAlJZGYM] S: 535 5.7.139 Authentication unsuccessful, user is locked by your organization's security defaults policy. Contact your administrator. [MN2PR11CA0028.namprd11.prod.outlook.com 2024-07-04T13:56:53.285Z 08DC9BC05D452012]