Office 365 add message to email body from external senders

Hello,
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
1212proAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
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:
https://blogs.perficient.com/microsoft/2016/04/office-365-providing-your-users-visual-cues-about-email-safety/


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.
Determine the Perfect Price for Your IT Services

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden with our free interactive tool and use it to determine the right price for your IT services. Download your free eBook 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?
Thanks,
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.