If we create service account/service principal ? Can it send out an email to distribution list from the app web/website if any failures? if not then what is alternate solution on this?

Vinod Survase 4,786 Reputation points
2023-05-16T13:11:01.2033333+00:00

If we create service account/service principal ? Can it send out an email to distribution list from the app web/website if any failures?

if not then what is alternate solution on this?

Exchange Online
Exchange Online
A Microsoft email and calendaring hosted service.
6,194 questions
Exchange | Exchange Server | Management
Microsoft Security | Microsoft Entra | Microsoft Entra ID
{count} votes

1 answer

Sort by: Most helpful
  1. Aholic Liang-MSFT 13,886 Reputation points Microsoft External Staff
    2023-05-17T05:41:35.89+00:00

     

    Hi @ Vinod Survase,

    By default, creating a service account/service principal cannot send mail from the application. You need to set the relevant permissions for it and create a client app that can access the  Microsoft Graph API to send email.

    I noticed that you mentioned any failures here, can you clarify whether it refers to an error in the application or in your tenant?


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.