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
    2020-07-28T19:47:28+00:00

    I've done this just now but still I don't see the message display on the top header.  how long does it take for this rule to apply ? should it work right away or do I need to wait for sometime ?

    Was this answer helpful?

    0 comments No comments
  2. Anonymous
    2020-07-24T16:45:23+00:00

    Thank you!

    Was this answer helpful?

    0 comments No comments
  3. Anonymous
    2020-07-24T15:42:55+00:00

    I think you need to swap the last <br></p>.

    I think it should be </p> <br>

    Add how many <br> for how ever many line break/spaces you want between the alert and the original message.

    Was this answer helpful?

    0 comments No comments
  4. Anonymous
    2020-07-24T12:03:46+00:00

    Also, can anyone tell me how to add a space between the highlighted box and the body of the email?   If i add a break as you can see it simply extends the highlighted box.   I'm not good at HTML......

    I'm using the Code posted in this forum, but i edited it to remove the border:

    <p><div style="background-color:#FFEB9C; width:100%; font-size:10pt; line-height:10pt; font-family:'Calibri'; color:Black; text-align: left;"><span style="color:#E83009"; font-weight:bold;>CAUTION:</span> This email is from an EXTERNAL contact. Please do not open attachments, or click on links from unknown or suspicious senders.<div><br></p>

    Was this answer helpful?

    0 comments No comments