We are SaaS Solution in Azure cloud using React, what is the best practice for email

Jamir Shaikh 21 Reputation points
2022-10-01T03:09:27.86+00:00

At this point we are trying to stay away from any third party provider or managing our own SMTP server.

Looked at both these options.
Azure Communication Service @azure/communication-email - Could not find any document how to get token and Call endpoint using PostMan.
Microsoft Graph - We are not clear what all we will need to make this work, downloaded aka.ms/graphpostmanwkspc, could not locate any message send option using Token. I also see some documentation around passing {userId} - do we need a generic outlook id that can be used for sending email ?

We are looking to see if someone has POSTMAN REST Based documentation using Application Permission.

Appreciate all your help.

Thanks
Jamir

Azure Communication Services
Azure Communication Services
An Azure communication platform for deploying applications across devices and platforms.
704 questions
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,771 questions
0 comments No comments
{count} votes

Accepted answer
  1. Ebraheem Al-Muneyeer (MSFT) 951 Reputation points Microsoft Employee
    2022-10-02T15:23:37.337+00:00

    Hey @Jamir Shaikh , thank you for reaching us.

    We do not have a sample for sending emails by using Postman, but we have a sample for sending SMS by using Postman. You can use it as a starting point to prepare the environment and generate the authorization token as follows:

    1. From here postman-tutorial you can follow the steps to prepare the Postman and pre-request steps.
    2. From here you can find the Restful API documentation send
    3. Please make sure you have all the required headers as mentioned here send. You will have Authorization from step #1 (pre-request code), you just need to add repeatability-request-id and repeatability-first-sent, something as follows
      246765-image.png
    4. You can find a sample request body here send

    Note: It is important when you set your Endpoint value in Postman Variables that it does not end with . The value should be as following: https://{acs-resource-name}.communication.azure.com

    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Jamir Shaikh 21 Reputation points
    2022-10-05T00:32:11.117+00:00

    @Ebraheem Al-Muneyeer (MSFT)

    Using the steps, I was able to create sendEmail in postman.

    Thank you very much.
    Jamir