A Windows XP help forum. PCbanter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » PCbanter forum » Microsoft Windows 7 » Windows 7 Forum
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

mailto: Custom URI scheme



 
 
Thread Tools Rate Thread Display Modes
  #1  
Old October 11th 15, 12:02 PM posted to alt.windows7.general
Petr Laznovsky
external usenet poster
 
Posts: 27
Default mailto: Custom URI scheme

Have web application with two different type of customers. IN customer deail page generating links
on email addresses to click and open 'compose new mail' window of my mail program, but need to open
different mail program for each type of customer. Decided to create different URI scheme for each
type of customer.

Have created custom URI scheme by this instructions
https://msdn.microsoft.com/en-us/lib...(v=vs.85).aspx

In web application creating links in such manner: a
href="custom_protocol_name:email_address"email_ad dress/a

it does work fine, proper email program open by clicking but windows URI handler for some reason
send full string "custom_protocol_name:email_address"in a %1 parameter, not only 'email_address' as
expect. Seem URI handler does not consider semicolon as a delimiter as in case of use standard
'mailto:' URI.

Am I doing something wrong?

L.


Ads
  #2  
Old October 12th 15, 04:23 PM posted to alt.windows7.general
JJ[_11_]
external usenet poster
 
Posts: 744
Default mailto: Custom URI scheme

On Sun, 11 Oct 2015 13:02:48 +0200, Petr Laznovsky wrote:
Have web application with two different type of customers. IN customer deail page generating links
on email addresses to click and open 'compose new mail' window of my mail program, but need to open
different mail program for each type of customer. Decided to create different URI scheme for each
type of customer.

Have created custom URI scheme by this instructions
https://msdn.microsoft.com/en-us/lib...(v=vs.85).aspx

In web application creating links in such manner: a
href="custom_protocol_name:email_address"email_ad dress/a

it does work fine, proper email program open by clicking but windows URI handler for some reason
send full string "custom_protocol_name:email_address"in a %1 parameter, not only 'email_address' as
expect. Seem URI handler does not consider semicolon as a delimiter as in case of use standard
'mailto:' URI.

Am I doing something wrong?

L.


That's how it works. The URI will always include the protocol itself.

Imagine if it's not...
Instead of email clients, let's assume them as web browsers.
So if the protocol is not included, how will the browser know whether to
access the site using HTTP or HTTPS?

In your case, I suggest make a program (or VBS) to handle all of your custom
protocols, where it will decide which application to execute from given
protocol.
  #3  
Old October 14th 15, 02:32 PM posted to alt.windows7.general
Petr Laznovsky
external usenet poster
 
Posts: 27
Default mailto: Custom URI scheme


That's how it works. The URI will always include the protocol itself.

Imagine if it's not...


Expecting some parsing on OS side, the name of protocol put into %1 and its value into %2 or
somethig, but nevermind. Will do it somehow.... Thanks for info.


L.
 




Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off






All times are GMT +1. The time now is 07:11 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 PCbanter.
The comments are property of their posters.