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,706 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,195 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,359 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
19,583 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Aholic Liang-MSFT 13,741 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.