How to send email from "******@sharepointonline.com" using Power Automate - Microsoft Flow?

Anonymous
2021-03-02T13:58:43+00:00

Hello Everyone,

I am using SharePoint online as intranet. I need to set "******@sharepointonline.com" as sender title.

I have tried using "Send an HTTP request to SharePoint". I have faced an error. I have shared that error in below screenshot.

Can anyone help me for the same?

Thanks & Regards,
Meet Bhatt

Microsoft 365 and Office | SharePoint | For business | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments
{count} votes
Answer accepted by question author
  1. Anonymous
    2021-03-03T19:11:07+00:00

    Dear Bhatt,

    Thanks for your updates.

    I'm glad to hear that it works in your environment.

    You can change the part 'From': '******@sharepoint.com' to 'From': '******@contoso.onmicrosoft.com' to make the email sent from the user. However, the ******@sharepoint.com part will be showed in the generated email as well. This may be unable to be changed. For the following example, the flow can make the email sent from Adele Vance but ******@sharepoint.com is showed in the email.

    Thanks for your understanding.

    Cliff

    0 comments No comments

2 additional answers

Sort by: Most helpful
  1. Anonymous
    2021-03-02T21:52:33+00:00

    Dear Bhatt,

    From your screenshots, it seems that you want to send emails from ******@sharepointonline.com in a flow in Power Automate.

    If yes, I kindly suggest you check whether you make the same settings as the following examples.

    Uri: _api/SP.Utilities.Utility.SendEmail

    Header:

    {

    "accept": "application/json;odata=verbose",

    "content-type": "application/json;odata=verbose"

    }

    Body:

    {

            'properties': {  
    
                 '\_\_metadata': { 'type': 'SP.Utilities.EmailProperties' },  
    
                'From': '\*\*\*\*\*\*@sharepoint.com',  
    
                'To': { 'results': ['\*\*\*\*\*\*@contoso.onmicrosoft.com'] },  
    
                'Body': 'this is test',  
    
                'Subject': 'this is test subject'  
    
            }  
    
        }
    

    Best Regards,

    Cliff

    1 person found this answer helpful.
    0 comments No comments
  2. Anonymous
    2021-03-03T05:24:55+00:00

    Dear Bhatt,

    From your screenshots, it seems that you want to send emails from ******@sharepointonline.com in a flow in Power Automate.

    If yes, I kindly suggest you check whether you make the same settings as the following examples.

    Uri: _api/SP.Utilities.Utility.SendEmail

    Header:

    {

    "accept": "application/json;odata=verbose",

    "content-type": "application/json;odata=verbose"

    }

    Body:

    {

    'properties': {

    '__metadata': { 'type': 'SP.Utilities.EmailProperties' },

    'From': '******@sharepoint.com',

    'To': { 'results': ['******@contoso.onmicrosoft.com'] },

    'Body': 'this is test',

    'Subject': 'this is test subject'

    }

    }

    Image

    Best Regards,

    Cliff

    Hi Cliff Gu MSFT,

    Thanks for quick response.

    I have implemented flow as per your suggestion and it is working correctly.

    I have one more question. Can i write something other instead of "******@sharepointonline.com" ?

    Please refer below screenshot.

    Thanks again for your help.

    Regards,
    Meet Bhatt

    0 comments No comments