Power Automate – forwarding emails as an attachment

Hi everyone! I have a bit of a “how-to” guide on how to forward an email as an attachment using Power Automate in Microsoft 365.

In my research, quite a few posts state that you should first create the file and get the file contents using OneDrive or SharePoint first and then attaching the .eml file.

I have two objections to this – firstly, this now means the user will require a licence for OneDrive or SharePoint, where as without this step, you can achieve this with just an Exchange Online licence, furthermore, although the aforementioned posts suggest deleting the file in the flow toward the end, it adds another additional step to the flow, as well as potentially a security issue by having the email file written albeit temporarily (or not if the flow fails to delete it!) to a OneDrive account.

Without further ado, let’s get started! Firstly you’ll need to create a new “Automated cloud flow”. Once created, you can add a “When a new email arrives” trigger to the flow, you can then configure any additional conditions, or leave as-is to apply to all emails. The next action to add next in the flow is “Export email”, make sure to set the “Message Id” from the data acquired in the previous step, you may need to click “See More” to see these options.

The next step is to add a “Send an email” action into the flow. Once added, specify a subject and body for the email, you can also pull through data from the acquired email in the first step, or use custom expressions.

Under “Advanced parameters”, select “Attachments”. Under “Name”, pull the “Subject” from the data acquired in the first step and simply suffix with “.eml”, or you can use your own custom name for the file name, but ensure to suffix the file with “.eml”. Under “Content”, pull through the “Body” acquired in the “Export email” action.

You should be all good to go! You can double check all of your syntax’s are correct by using the “Flow checker”. You can also add additional steps to the flow, as I have done, which sends an automated response back to the sender, to let them know their email has been received.

That’s it for now! I hope some of you might find this helpful, as always, if you have any questions or need a hand, please feel free to reach out!