cancel
Showing results for 
Search instead for 
Did you mean: 
ittech
Level 13

Editing Templates in MWG7

Jump to solution

I've recently implented some of the code from this post:

https://community.mcafee.com/message/154864

It works fine in Firefox, but all of our users have IE. I get this message

1.png

It seems the $Rule.CurrentRule.Name$ property doesn't pass to Outlook through IE properly. Is there a way to fix this?

0 Kudos
1 Solution

Accepted Solutions
ittech
Level 13

Re: Editing Templates in MWG7

Jump to solution

Thanks for the tips Erik!

Actually, I tried the simplest thing first. I took the quotation marks out of my Rule name and that seems to be working great!

I really like your JavaScript page, as it adds each bit of info to a new line. Though, in my domain we don't push out IE settings and anyone could have JS blocked

Thanks again!

0 Kudos
5 Replies
eelsasser
Level 15

Re: Editing Templates in MWG7

Jump to solution

I would have to see the source code of the <a href= > in the block page that is displayed.

That is, get a block page that has the link, view source and send me the snippet.

If you don't want to publically post it because of company info in there, sanitize the email adresses or send private message.

0 Kudos
ittech
Level 13

Re: Editing Templates in MWG7

Jump to solution

This one works:

For access to a blocked site, please contact your <A HREF="mailto:?Subject=Request submission for: ITTech&Body=URL: http://www.facebook.com/, User: MyUsername, Category: Social Networking"><font color="FFD700">Department Head</font></A>.

This one does not:

For any further assistance, please contact <A HREF="mailto:dsupport@crazytown.org?Subject=Request submission for: MyUsername&Body=URL: http://www.facebook.com/, User: MyUsername, Category: Social Networking,  Rule Name: Blocks URLs matching URL BlockList &quot;Admins&quot;"><font color="FFD700">DSupport</font></A>.

Could it be the &quot?

0 Kudos
eelsasser
Level 15

Re: Editing Templates in MWG7

Jump to solution

Probably spaces in the body. you cannot have a space in a link.

Wrap it all into String.ReplaceAll(<message body string>, " ","+")

or

String.URLEncode(<message body string>)

It's definitely something with the quotes. I take them out and it works for me.

Message was edited by: eelsasser on 10/14/11 5:47:59 PM EDT
0 Kudos
eelsasser
Level 15

Re: Editing Templates in MWG7

Jump to solution

I was really trying to avoid using JavaScript to do this, but here's the cleanest way I can think of to put the link on the block page:

Capture.PNG

When the page hits, the values get substituted like this:

Capture2.PNG

And the email looks like this:

Capture3.PNG

0 Kudos
ittech
Level 13

Re: Editing Templates in MWG7

Jump to solution

Thanks for the tips Erik!

Actually, I tried the simplest thing first. I took the quotation marks out of my Rule name and that seems to be working great!

I really like your JavaScript page, as it adds each bit of info to a new line. Though, in my domain we don't push out IE settings and anyone could have JS blocked

Thanks again!

0 Kudos