Mail Flow - External Message Warning HELP

Anonymous
2019-02-11T17:13:35+00:00

Hello!

I'm trying to setup a mail flow rule for external email messages from non-organization addresses. I have it setup great, however I have it coded so that it displays the yellow background, red boarder etc and it displays perfect in a sample code viewer. However, when I add it to my rule and then send a test message to my email from outside the org, it doesn't display any of these colors. HELP?? I have included my code below. I'm using 0365

<div style="background-color:#FFEB9C; width:100%; border-style: solid; border-color:#9C6500; border-width:1pt; padding:2pt; font-size:10pt; line-height:12pt; font-family:'Calibri'; color:Black; text-align: left;"><span style="color:#9C6500"; font-weight:bold;>CAUTION:</span> This email originated from outside of the organization. Do not click links or open attachments unless you recognize the sender and know the content is safe.</div><br>

Microsoft 365 and Office | Subscription, account, billing | For home | 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
Answer accepted by question author
Anonymous
2019-02-11T19:26:52+00:00

Hi BH33,

Thanks for provide the details in your post. About your question, please kindly check following steps to see if it can help you fix this issue:

  1. In Exchange Admin Center, go to mail flow > rules and then click "+" to create a new rule.
  2. Then set the new rule like below picture:

Note: in step 4, please enter following code: 

<p><div style="background-color:#FFEB9C; width:100%; border-style: solid; border-color:#9C6500; border-width:1pt; padding:2pt; font-size:10pt; line-height:12pt; font-family:'Calibri'; color:Black; text-align: left;"><span style="color:#9C6500"; font-weight:bold;>CAUTION:</span> This email originated from outside of the organization. Do not click links or open attachments unless you recognize the sender and know the content is safe.</div><br></p>

I have tested above rule on my side and I can successfully show the warning message(see below picture), if you have any problems when doing so, please feel free to post back and provide us a screenshoot of the detailed information about the rule you created for analysis.

Regards,

Jennifer

Was this answer helpful?

100+ people found this answer helpful.
0 comments No comments

93 additional answers

Sort by: Most helpful
  1. Anonymous
    2021-04-05T21:37:57+00:00

    Here is the what I am using for my rule and the background and border color do not appear.. Screenshot provided as well.

    <p><div style=border-color:# 9C6500; background-color:#FFEB9C; padding:1em;> <span style=font-size:12.0pt;color:black;><b>[EXTERNAL EMAIL]</span></b> <span style=font-size:10.0pt;color:black> CAUTION: This email originated from outside of the organization. DO NOT CLICK links or open attachments unless you recognize the sender and know the content is safe.</span></p>

    Image

    I'm not an HTML guru, but I believe your syntax is incorrect, no space between # and your number, missing "", also your not putting a border around, just telling what the border color should be.

    Was this answer helpful?

    0 comments No comments
  2. Anonymous
    2021-03-31T19:22:19+00:00

    Here is the what I am using for my rule and the background and border color do not appear.. Screenshot provided as well.

    <p><div style=border-color:# 9C6500; background-color:#FFEB9C; padding:1em;> <span style=font-size:12.0pt;color:black;><b>[EXTERNAL EMAIL]</span></b> <span style=font-size:10.0pt;color:black> CAUTION: This email originated from outside of the organization. DO NOT CLICK links or open attachments unless you recognize the sender and know the content is safe.</span></p>

    Was this answer helpful?

    0 comments No comments
  3. Anonymous
    2021-02-11T10:36:20+00:00

    You can add a category to the message instead of changing its subject line or prepending the body text.

    Try this rule:

    Was this answer helpful?

    0 comments No comments
  4. Anonymous
    2020-12-02T18:33:19+00:00

    Would it be possible to have the yellow background for the text only and not the entire line the text is on?

    Was this answer helpful?

    0 comments No comments