Hi Angelo, SMTP does not support Client credential flow. Unfortunately there isn't any way to automate this and user will have to face the login screen. As of now there are no exact date to implement Oauth with SMTP for Client Credentials flow. For now, the best option is to use legacy authentication docs.microsoft.com/en-us/exchange/clients-and-mobile-in-exchange-online/authenticated-client-smtp-submission. I understand you concern that basic authentication in Exchange Online is start deprecating and our recommendation is to migrate to OAuth2. However, As mentioned here SMTP AUTH will still be available when Basic authentication is permanently disabled. The reason SMTP will still be available is that many multi-function devices such as printers and scanners can't be updated to use modern authentication. However, we strongly encourage customers to move away from using Basic authentication with SMTP AUTH when possible. Other options for sending authenticated mail include using alternative protocols, such as the Microsoft Graph API. Hope this will help.
@@gowthamchinthalakara3090 Check this out learn.microsoft.com/en-us/microsoft-365/enterprise/hybrid-modern-auth-overview?view=o365-worldwide#do-you-meet-modern-authentication-prerequisites and this one learn.microsoft.com/en-us/exchange/mail-flow-best-practices/how-to-set-up-a-multifunction-device-or-application-to-send-email-using-microsoft-365-or-office-365
Thanks a lot for the video. How would this work if the app was hosted on a remote server and not a localhost?
I m trying to achieve this using java programmatically
But i don't know where to get the code
Please provide any information for this
Is there a way to automate the interactive login? What I mean not to show the interactive login and do it programatically.
Hi Angelo, SMTP does not support Client credential flow. Unfortunately there isn't any way to automate this and user will have to face the login screen. As of now there are no exact date to implement Oauth with SMTP for Client Credentials flow.
For now, the best option is to use legacy authentication docs.microsoft.com/en-us/exchange/clients-and-mobile-in-exchange-online/authenticated-client-smtp-submission.
I understand you concern that basic authentication in Exchange Online is start deprecating and our recommendation is to migrate to OAuth2.
However, As mentioned here SMTP AUTH will still be available when Basic authentication is permanently disabled. The reason SMTP will still be available is that many multi-function devices such as printers and scanners can't be updated to use modern authentication. However, we strongly encourage customers to move away from using Basic authentication with SMTP AUTH when possible. Other options for sending authenticated mail include using alternative protocols, such as the Microsoft Graph API.
Hope this will help.
Could you explain how we can configure modern auth in onprem applications like printer?
Devices like printer cannot be upgraded to oauth and hence you should stick to the basic auth in that case.
@@microsoftgraphExplorer got it, so basic auth protocols like IMAP, POP3, autodiscover still supporting in onprem exchange right.....
@@gowthamchinthalakara3090 Check this out learn.microsoft.com/en-us/microsoft-365/enterprise/hybrid-modern-auth-overview?view=o365-worldwide#do-you-meet-modern-authentication-prerequisites and this one learn.microsoft.com/en-us/exchange/mail-flow-best-practices/how-to-set-up-a-multifunction-device-or-application-to-send-email-using-microsoft-365-or-office-365
Where is the code explanation?
google had not blocked emails to gmail?
Not really sure on the gmail part.