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

Поделиться
HTML-код
  • Опубликовано: 1 дек 2024

Комментарии • 11

  • @nimakarkhaneh7912
    @nimakarkhaneh7912 13 дней назад

    Thanks a lot for the video. How would this work if the app was hosted on a remote server and not a localhost?

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

  • @AngeloValdezlovejesus
    @AngeloValdezlovejesus 2 года назад +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  2 года назад

      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
    @gowthamchinthalakara3090 2 года назад +1

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

    • @microsoftgraphExplorer
      @microsoftgraphExplorer  2 года назад

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

    • @gowthamchinthalakara3090
      @gowthamchinthalakara3090 2 года назад

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

    • @microsoftgraphExplorer
      @microsoftgraphExplorer  2 года назад

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