Custom URL Protocol in Windows - Email Links

I have my own URL protocol for the application I'm working on (as defined here: http://msdn.microsoft.com/en-us/library/aa767914.aspx ). This protocol works fine, I can go to Start → Run and type:

foo:1_1

And my application launches as expected. If I create a web page with a link of this type, it works as expected (I get a warning from the browser, but this is not a problem). My problem arises when I try to send an email from my program containing one of these links. Gmail in particular seems to be deleting my link, so when I send an email containing that link:

<a href='foo:1_1'>foo</a>

I stay with this HTML result:

<a>foo</a>

It seems that I am removing my href tag, which I assume is due to the fact that it does not recognize the protocol. Does anyone know how I can get around this? I tested it using my ISP mail service and the tag remained unchanged. Is this just what I’ll have to live with and ask my users to cut and paste the link into the "Start" - "Run" field?

+5
source share
1 answer

After doing some research and looking at what another application is doing, I came up with what seems like a suitable workaround:

, , , . , iTunes , iTunes.

+3

All Articles