Example GRAPHAPI controller to send email

Uses .NET classes to do the POST.

You will need to create an App Registration in AZURE and generate a clientID and Secret.

The code reads these in from an include loadibsini.si but just replace that bit with whatever means you use to store config data in your application/framework.

 

 


  • Carlos Vega (ISI Condal)

    Thanks for sharing this code.

     

    I imagine that the configuration in Azure would be something like this (The images are in Spanish, my native language)

     

    App Registration:

     

    App registrationConfiguration to allow send emails:

     

    Configuration to allow send emails

    • Christian Bryan (Radian Group)

      Hola Carlos

       

      Si, creo que eso es lo correcto.

       

       

  • Christian Bryan (Radian Group)

    This is an example from my Azure app registration setup

    image