Have you ever needed to redirect all mailto: links to a webpage (ie you're
using webmail instead of a traditional e-mail program.
Then mail protocol is what you need. It lets you do just that. When
you click a mailto: link on a webpage(E g nitro2k01@gmail.com) it redirects
you to a page of your choice (E g http://www.myserver.com/mailscript.php?mailto=nitro2k01@gmail.com)
mailprotocol can be set to handle e-mail links in Internet Explorer, Netscape and Opera. It can also target the same list of browsers.
This is where you decide what happens when you click a mail link. Open mailprotocol.html in your favourite text editor. Find the following lines in the file:
/* mailprotocol 1.0 by nitro2k01 * Please read readme.html */ //targetUrl = "http://www.foo.bar/mailscript.php";//?morefoo=morebar //mailqs = "mailto"; //subjectqs = "subject"; /* ****************************************************** * Do not edit below this line (unless you want to :) ) * ****************************************************** */
The three bolded lines above decide the behaviour of mailprotocol.
Next step is to integrate mailprotovol with your system. This will
make mailprotocol the default handler for the mailto: protocol.
Run
regedit.
Find this key:
HKEY_CLASSES_ROOT\mailto\shell\open\command
Change the value of the key as follows:
"C:\Program files\Internet Explorer\iexplore.exe" "file://C:/My Documents/html/mailprotocol/mailprotocol.html?passedmailto=%l"
Now all e-mail links in documents viewed with Internet Explorer will open with mailprotocol. If no other e-mail program has been set up, the same goes for Netscape/Mozilla. Opera needs you to change a setting though: Open preferences(Alt+P)/E-mail/Use default E-mail Client On Computer.
How about opening the file with another browser? No problem! Just replace the
path to Internet Explorer with the path another browser (E g C:\Program Files\Firefox\firefox.exe)
mailprotocol was created 16 November 2004 by nitro2k01/DTD Software.