Power Automate Send Email From Shared Mailbox

Do you want to send an email from a shared mailbox (V2) using Power Automate flow? This tutorial will help you to know how to send email from shared mailbox in Power Automate with an example.

Recently, I got a requirement to send an email from a shared mailbox(V2) action when a new task is created in the SharePoint list using Power Automate flow.

Before starting to create a flow, we have to create the SharePoint list. Here, I am going to use the below task list consisting of the following:

Column NameColumn Type
Task Namedefault title column
AssignedToPerson or group column
TaskPrioritychoice type
TaskStatuschoice type
DueDatedate type
Power Automate Send an Email from a Shared Mailbox (V2)

Similarly, make sure you have the Shared mailboxes here. I will use the below highlighted Shared Mailbox, with three members called (Adele Vance, Miriam Graham, and Patti Fernandez) with full permissions.

If you don’t have any Shared Mailbox, create one Shared Mailbox. You can log in to the Admin center->Teams & Groups -> Shared mailboxes and + Add a Shared Mailbox option.

power automate send email from shared mailbox

Now, we will start creating the flow to send an email from a Shared Mailbox (V2) action.

Send an email from a shared mailbox (v2) in Power Automate

Let us see how to send an email from a shared mailbox (v2) in Power Automate,

Step-1:

Create an automated cloud flow with the trigger when an item is created and configure the required parameters:

  • Site Address: select the SharePoint site from the dropdown
  • List Name: select the list name from the dropdown
power automate forward email from shared mailbox

Step-2:

See also  How to change Power Apps DataCard to dropdown

Select the initialize variable action from action triggers, enter the name, and choose the variable type as String.

power automate shared mailbox

Step-3:

Add a new step, then select the apply to each control and choose the Assigned To from the dynamic content values

send an email from a shared mailbox (v2)

Now, inside the loop, add a set variable action; from the dropdown, select the initialized variable, and in the value section from the dynamic content “Link to item”.

power automate send from shared mailbox

Add a new step: Send an email from a shared mailbox (V2) action from the action triggers. Provide the required parameters:

  • Original Mailbox Address – Enter the original mailbox address from the suggested people
  • To – From the dynamic content, select the enter the assigned to users
  • Subject – Enter the subject of the mail
  • Body – Enter the body of the mail
send an email from shared mailbox power automate

Step-4:

Before we test the flow, we have to configure the Shared mailbox to Outlook.

For that, Open Outlook -> Right-click on the folders, and choose the Shared Mailbox option. Enter the created Shared Mailbox display name or email address and click on the Add option.

Here, I have configured the created ShareMailbox to the Outlook account for the (Adele Vance) user.

Similarly, follow the above steps to configure the mailbox with Outlook account for the other two members presented in the Shared Mailbox (Miriam Graham and Patti Fernandez)

send an email from a shared mailbox power automate, power automate send email from shared mailbox

All three members in the Shared Mailboxes group are configured with the Shared folder with their Outlook account.

Step-5:

Save and run the flow. The flow will trigger when a new task is created, and in the assigned to field, enter the created shared mailbox ID as highlighted below:

power automate send email on behalf of shared mailbox

Once the flow runs successfully, like the below:

power automate flow send email from shared mailbox, send email from shared mailbox power automate

All the members assigned presented in the Shared mailbox will receive a mail. The screenshot below shows that the user “Miriam Graham” received the mail in the Shared Folder inbox.

send email with options from shared mailbox

The screenshot below shows that the user Patti Fernandez received the mail in the Shared Folder inbox.

power automate send email with options from shared mailbox

This is how to send an email from a shared mailbox (v2) in Power Automate.

See also  How to Remove Special Characters from a String in Power Automate?

Power Automate Send Email from Shared Mailbox HTML

Let us see how to send email from a Shared mailbox HTML using Power Automate.

In this example, we will create a flow that will trigger every week, to send the weekly status update to the Manager from the development team from Shared Mailbox.

Here, I am going to use the below SharePoint Task list:

Power automate send email from Shared mailbox HTML

Step-1:

Create a Scheduled flow that triggers every week; enter the Starting date time, and interval to trigger the flow.

send email from Shared mailbox HTML in Power automate

Step-2:

Add a new step and choose to get items action to get all the items that are presented in the SharePoint list.

send email from Shared mailbox HTML in Power automate flow

Step-3:

Add a new step choose the select data operation, In the Form section pass the values from dynamic content. Enter the key and Map the values.

For the Assigned To key, use the below expression as the value, because the Assigned To field has multiple values.

join(xpath(xml(json(concat('{"body":{"value":', item()?['AssignedTo'] , '}}'))), '/body/value/DisplayName/text()'), ', ')
send email from Shared mailbox HTML using flow

Step-4:

Add a new step, select Create HTML table, and pass the output of the previous data operation in the Form section.

How to send email from Shared mailbox HTML using flow

Step-5:

Add another compose data operation and use the below CSS code to apply the CSS for the created HTML table.

<style>
table, th, td {
  border: 1px solid;
}
th {
  background-color: #04AA6D;
  color: white;
}
th, td {
  padding: 15px;
  text-align: left;
border-bottom: 1px solid #ddd;
}
</style>
How to send email from Shared mailbox HTML in Power automate

Step-6:

Select a new step and choose the Send an email from a shared mailbox (V2) action, providing the required parameters.

  • Original Mailbox Address – Enter the original mailbox address from the suggested people as shared mailbox
  • To – select the enter the manager account from the suggested people (Here I have selected the manager account as Adele Vance)
  • Subject – Enter the subject of the mail
  • Body – Enter the body of the mail and then add the HTML table and the CSS outputs from the dynamic content value.
How to send a email from a shared mailbox in Power Automate

Step-7:

See also  How to use Power BI Desktop

Save and run the flow; once the flow runs successfully, like below:

Send mail from shared mailbox with html

We can see that the Manager (Adele Vance) received the mail in the inbox:

send a email from a shared mailbox in Power Automate

In the Configured Shared mailbox folder, In the send items folder, we can see that the mail has been sent to the Manager account.

send a email from a shared mailbox in Power Automate flow

This is how to send email from a Shared mailbox HTML using Power Automate.

Conclusion

I hope you know how to configure and send an email from a Shared Mailbox using Power Automate flow.

I have shown you an example of how to send an email from a shared mailbox (V2) and receive an email to the Shared mailbox using Power Automate flow with different examples.

You may also like:

>