A Quick Tutorial on SMTP Email Sending with OAuth2 in .Net Core (Code Sample).

Поділитися
Вставка
  • Опубліковано 22 жов 2024

КОМЕНТАРІ • 10

  • @AngeloValdezlovejesus
    @AngeloValdezlovejesus Рік тому +2

    Is there a way to automate the interactive login? What I mean not to show the interactive login and do it programatically.

    • @microsoftgraphExplorer
      @microsoftgraphExplorer  Рік тому

      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.

  • @shashankagrawal1058
    @shashankagrawal1058 Рік тому

    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

  • @gowthamchinthalakara3090
    @gowthamchinthalakara3090 Рік тому +1

    Could you explain how we can configure modern auth in onprem applications like printer?

    • @microsoftgraphExplorer
      @microsoftgraphExplorer  Рік тому

      Devices like printer cannot be upgraded to oauth and hence you should stick to the basic auth in that case.

    • @gowthamchinthalakara3090
      @gowthamchinthalakara3090 Рік тому

      @@microsoftgraphExplorer got it, so basic auth protocols like IMAP, POP3, autodiscover still supporting in onprem exchange right.....

    • @microsoftgraphExplorer
      @microsoftgraphExplorer  Рік тому

      @@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

  • @yasserhy
    @yasserhy Рік тому

    Where is the code explanation?

  • @marciosilva2461
    @marciosilva2461 Рік тому

    google had not blocked emails to gmail?