Exchange Online - Convert email to Plain-Text

PT Maliborski 286 Reputation points
2025-01-30T08:10:25.6833333+00:00

Hi Everyone,

I hope someone can help me.

I have an email address - let say "orders@my-business.com" - and I'm redirecting all messages to "orders@external.com" to manage all the orders. "orders@external.com" is located on a platform where for security HTML in emails is blocked. Therefore some redirected emails containing links embedded in pictures/logos/buttons/etc after redirection are not shown on the external platform and the links are cut out/missing.

I was asked to check out if there is possibility to configure an Exchange Online rule that will target all emails sent to "orders@my-business.com" address, then converted to Plain-Text and then redirected to "orders@external.com".

Does Exchange Online offer something like that. Or maybe Remote Domains in Exchange.

If yes, can someone please provide configuration steps?

Microsoft Exchange Online
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Vasil Michev 112.6K Reputation points MVP
    2025-01-30T16:54:50.81+00:00

    Yes, you should be able to achieve that in Exchange Online. If you only want this behavior for a single recipient, create a mail contact for it, then toggle the setting

    New-MailContact -Name orders -ExternalEmailAddress orders@external.com
    Set-MailContact orders@external.com -MessageBodyFormat Text
    

    Alternatively, you can do this on the domain level, via the New-RemoteDomain cmdlet. Details can be found for example here: https://learn.microsoft.com/en-us/exchange/mail-flow-best-practices/message-format-and-transmission

    0 comments No comments

  2. Jake Zhang-MSFT 8,700 Reputation points Microsoft Vendor
    2025-01-31T01:31:38.6033333+00:00

    Hi @PT Maliborski ,

    Welcome to the Microsoft Q&A platform!

    Yes, you can configure Exchange Online to convert emails to plain text before forwarding them. However, this requires a combination of mail flow rules and possibly PowerAutomate (Flow) to achieve the desired result, as Exchange Online does not natively support converting emails to plain text via transport rules alone.

    Here are the steps to set it up:

    Step 1: Create a mail flow rule to redirect emails

    1. Sign in to the Exchange Admin Center (EAC).
    2. Navigate to: Mail flow > Rules.
    3. Create a new rule:
    • Click the + icon and select Create a new rule.
    • Name the rule (e.g., "Redirect orders to external").
    • Under "If this rule applies," select "The recipient is" and specify "orders@my-business.com."
    • Under "Do the following," select "Redirect the message to" and specify "orders@external.com."
    • Save the rule.

    Step 2: Convert emails to plain text using PowerAutomate

    1. Sign in to PowerAutomate.
    2. Create a new flow:
    • Select "Automate Flow."
    • Select the trigger: "When a new email arrives in a shared mailbox (V2)".
    • Set the mailbox to "orders@my-business.com".
    1. Add an action:
    • Search for "Convert HTML to text".
    • Use the output of the trigger as the input for this action.
    1. Add another action:
    • Search for "Send email (V2)".
    • Set the recipient to "orders@external.com".
    • Use the plain text output from the previous step as the email body.
    1. Save and activate the flow.

    Step 3: Configure remote domains (optional)

    1. Sign in to the Exchange admin center (EAC).
    2. Navigate to: Mail flow > Remote domains.
    3. Add a new remote domain:
    • Click the "+" icon.
    • Enter the domain name (e.g. "external.com").
    • Configure the settings to allow automatic forwarding and plain text emails.
    • Save the settings.

    By following these steps, you should be able to ensure that all emails sent to "orders@my-business.com" are converted to plain text and then redirected to "orders@external.com".


    Please feel free to contact me for any updates. And if this helps, don't forget to mark it as an answer.

    Best,

    Jake Zhang

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.