cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1327
Views
0
Helpful
14
Replies
Highlighted
Beginner

How do I embed HTML correctly in a text resource

I've been tasked with appending our departmental logo at the top of all messages outgoing from a specific account, I know how to setup the content filter and policy for doing this, but it's sending my text out as just that ... plain text. How do I format a text resource to appear as HTML in a message?

Thank you.

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Cisco Employee

Hello Daniel,

Hello Daniel,

You'll want to make sure you're selecting the 'Code View' option when editing the Text Resource and entering in the proper HTML code. Then once you un-select Code View, you should see the proper HTML formatting.

Also, more steps available in our end-user guides if needed : ESA ASyncOS 9.7 - HTML Text Resource Configuration

Hopefully that helps!

Thanks!

-Dennis M.

View solution in original post

14 REPLIES 14
Highlighted
Cisco Employee

Hello Daniel,

Hello Daniel,

You'll want to make sure you're selecting the 'Code View' option when editing the Text Resource and entering in the proper HTML code. Then once you un-select Code View, you should see the proper HTML formatting.

Also, more steps available in our end-user guides if needed : ESA ASyncOS 9.7 - HTML Text Resource Configuration

Hopefully that helps!

Thanks!

-Dennis M.

View solution in original post

Highlighted
Beginner

Thank you, about 2 minutes

Thank you, about 2 minutes before you posted, I tried that "code view" button and just pasted my HTML in there, however, when I tried to submit it Ironport said I didn't have any "text" in my text resource, so I put a single period (since a space wouldn't work) after the HTML and it worked! 

Thank you

Highlighted
Cisco Employee

Great! I'm glad that worked!

Great! I'm glad that worked! :) 

Thanks

-Dennis M.

Highlighted

Re: Hello Daniel,

This did not work for me.  Here's my code.  It looks okay when clicking on the code view button.

 

Red text error says:  "Please enter content."  And I cannot click on Submit.

 

<em><table style="”border:1px" #000000="" solid”="" border="”0″" bgcolor="”#F7F9EC"><tbody><tr><td><strong>EXTERNAL EMAIL:</strong>&nbsp; Do not click any links <span style="text-decoration: underline;">or</span> open any attachments unless you trust the sender. <br></td></tr></tbody></table></em>

Highlighted
Cisco Employee

Re: Hello Daniel,

I tried this.
I added your content and clicked ‘clean’
https://html5-editor.net/
I was able to save it in my test esa.

Give it a shot,

Chris A
Highlighted

Re: Hello Daniel,

Thank you! I will give this a try tomorrow.
Highlighted

Re: Hello Daniel,

Unfortunately, I cannot get to that site through my WSA.

Highlighted

Re: Hello Daniel,

I was able to get this to work.  Thank you!

Highlighted
Beginner

Re: Hello Daniel,

Hi Experts,

 

Tried all sort of HTML cleaning and other means but still my ESA gives error - "Please enter content"

 

My script is as follows

 

<table style="border:1px" #000000="solid”=" border="”0&quot;" bgcolor="#ffffe0"><tbody><tr><td><font color="#ff3333"><strong>CAUTION:</strong></font> This email originated from outside the organization. Do not click links or open attachments unless you validate the sender and know the content is safe.</td></tr></tbody></table>

Highlighted
Cisco Employee

Re: Hello Daniel,

Hello Aayush,

I have made some modifications to your script as below which seems to be working on ESA HTML code without error.
Please try to make modifications on the script as per your requirement:

<table bgcolor="#ffffe0" border="”0?" style="”border: 1px;"><tbody><tr><td><strong><h1 style="color:Red;"><span style="font-size: 13px; color: red;">CAUTION:</span></h1></strong> This email originated from outside the organization. Do not click links or open attachments unless you recognize the sender and know the content is safe.</td></tr></tbody></table>

I hope the above helps.

Cheers,
Pratham
Highlighted
Beginner

Re: Hello Daniel,

Hi Prathan

 

The script worked beautifully. Have modified the script to remove the header part.

 

The revised script......

 

<table style="”border: 1px;" border="”0?" bgcolor="#ffffe0"><tbody><tr><td><strong><span style="font-size: 13px; color: red;">CAUTION:</span></strong> This email originated from outside the organization. Do not click links or open attachments unless you recognize the sender and know the content is safe.</td></tr></tbody></table>

Highlighted
Cisco Employee

Re: Hello Daniel,

Hi Aayush,

Glad to know that I was able to help!

Cheers,
Pratham
Highlighted
Beginner

Re: Hello Daniel,

Thank You Pratham for extending the help.

Highlighted
Cisco Employee

Re: Hello Daniel,

My pleasure!