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,716 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?

Microsoft Exchange Online
Microsoft Exchange Online Management
Microsoft Exchange Online Management
Microsoft Exchange Online: A Microsoft email and calendaring hosted service.Management: The act or process of organizing, handling, directing or controlling something.
4,302 questions
Exchange Server Management
Exchange Server Management
Exchange Server: A family of Microsoft client/server messaging and collaboration software.Management: The act or process of organizing, handling, directing or controlling something.
7,426 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
20,088 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Aholic Liang-MSFT 13,831 Reputation points Microsoft Vendor
    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.