Office 365 add message to email body from external senders

I want to add color warning message to email body received from external senders in Office 365. I want to users that the email is coming from outside our domain and be cautious.

Thank you
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Vasil Michev (MVP)Commented:
1212proAuthor Commented:
Here is the code I would like to use but I'm not sure where to put this.  Is this a PowerShell command or do I just paste this in the transport rule text box?

Credit to this site for the code:

New-TransportRule -Name "Visual Cue - External to Organization" -Priority 0`
-FromScope "NotInOrganization"`
-ApplyHtmlDisclaimerLocation "Prepend"`
-ApplyHtmlDisclaimerText "<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>"
Vasil Michev (MVP)Commented:
PowerShell should do, but you can also create it in the Exchange Admin Center.
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

1212proAuthor Commented:
Hi Vasil,  Would I just paste the code after the -ApplyHtmlDisclamerText into the disclaimer text box in the Exchange admin center after creating a new rule?
1212proAuthor Commented:
I tried adding it to the text box but it highlights the </br and calibri and wants those corrected.  Not sure where to go from here
Vasil Michev (MVP)Commented:
I copy/pasted your sample and it doesnt return any error. Try a different browser maybe? You can also clean up the formatting a bit, start with a simple colored word/phrase and add from there.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Office

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.