473,811 Members | 2,767 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How does mailto really work?

Example:
<a href="mailto:so ******@somewher e.com>Send Mail</a>

I've been trying to find documentation via W3 and the RFCs but I have
yet to find documentation that explains how a click event on an anchor
tag can launch a client-side e-mail program and populate its To: field
with an e-mail address.

I've found RFCs that briefly describe mailto but they fail to describe
the actual mechanism that enables the functionality.

Comments? Documentation?

--
<%= Clinton Gallagher
A/E/C Consulting, Web Design, e-Commerce Software Development
Wauwatosa, Milwaukee County, Wisconsin USA
NET csgallagher@ REMOVETHISTEXT metromilwaukee. com
URL http://www.metromilwaukee.com/clintongallagher/

Nov 16 '05 #1
6 2589
clintonG,

You aren't going to find any. This is an implementation detail that is
left to the actual client viewing the HTML. It just has to be able to
understand the protocol that is used in the URL, and then perform an action
based on that.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard. caspershouse.co m
"clintonG" <csgallagher@RE ************@me tromilwaukee.co m> wrote in message
news:eO******** *****@TK2MSFTNG P11.phx.gbl...
Example:
<a href="mailto:so ******@somewher e.com>Send Mail</a>

I've been trying to find documentation via W3 and the RFCs but I have
yet to find documentation that explains how a click event on an anchor
tag can launch a client-side e-mail program and populate its To: field
with an e-mail address.

I've found RFCs that briefly describe mailto but they fail to describe
the actual mechanism that enables the functionality.

Comments? Documentation?

--
<%= Clinton Gallagher
A/E/C Consulting, Web Design, e-Commerce Software Development
Wauwatosa, Milwaukee County, Wisconsin USA
NET csgallagher@ REMOVETHISTEXT metromilwaukee. com
URL http://www.metromilwaukee.com/clintongallagher/

Nov 16 '05 #2
The text inside a HREF is a URI. A URI begins with a "scheme" which
could be an URL protocol, in which "mailto" is one.

Regardless, the URI is passed onto the OS for processing as it sees fit.

In this case, your email client has told your OS, "When you see a
mailto, let me handle it"

--
Truth,
James Curran
Home: www.noveltheory.com Work: www.njtheater.com
Blog: www.honestillusion.com Day Job: www.partsearch.com
(note new day job!)

"clintonG" <csgallagher@RE ************@me tromilwaukee.co m> wrote in message
news:eO******** *****@TK2MSFTNG P11.phx.gbl...
Example:
<a href="mailto:so ******@somewher e.com>Send Mail</a>

I've been trying to find documentation via W3 and the RFCs but I have
yet to find documentation that explains how a click event on an anchor
tag can launch a client-side e-mail program and populate its To: field
with an e-mail address.

I've found RFCs that briefly describe mailto but they fail to describe
the actual mechanism that enables the functionality.

Nov 16 '05 #3
Thanks for the rehash of the W3 and RFC documents ;-)

<%= Clinton Gallagher

"James Curran" <Ja*********@mv ps.org> wrote in message
news:Of******** *****@tk2msftng p13.phx.gbl...
The text inside a HREF is a URI. A URI begins with a "scheme" which could be an URL protocol, in which "mailto" is one.

Regardless, the URI is passed onto the OS for processing as it sees fit.
In this case, your email client has told your OS, "When you see a
mailto, let me handle it"

--
Truth,
James Curran
Home: www.noveltheory.com Work: www.njtheater.com
Blog: www.honestillusion.com Day Job: www.partsearch.com
(note new day job!)

"clintonG" <csgallagher@RE ************@me tromilwaukee.co m> wrote in message news:eO******** *****@TK2MSFTNG P11.phx.gbl...
Example:
<a href="mailto:so ******@somewher e.com>Send Mail</a>

I've been trying to find documentation via W3 and the RFCs but I have yet to find documentation that explains how a click event on an anchor tag can launch a client-side e-mail program and populate its To: field with an e-mail address.

I've found RFCs that briefly describe mailto but they fail to describe the actual mechanism that enables the functionality.


Nov 16 '05 #4

"clintonG" <csgallagher@RE ************@me tromilwaukee.co m> wrote in message
news:%2******** ********@TK2MSF TNGP11.phx.gbl. ..
Thanks for the rehash of the W3 and RFC documents ;-)
If you want IE specifics, read
http://msdn.microsoft.com/library/de...w/overview.asp <%= Clinton Gallagher

"James Curran" <Ja*********@mv ps.org> wrote in message
news:Of******** *****@tk2msftng p13.phx.gbl...
The text inside a HREF is a URI. A URI begins with a "scheme"

which
could be an URL protocol, in which "mailto" is one.

Regardless, the URI is passed onto the OS for processing as it

sees fit.

In this case, your email client has told your OS, "When you see a
mailto, let me handle it"

--
Truth,
James Curran
Home: www.noveltheory.com Work: www.njtheater.com
Blog: www.honestillusion.com Day Job: www.partsearch.com
(note new day job!)

"clintonG" <csgallagher@RE ************@me tromilwaukee.co m> wrote in

message
news:eO******** *****@TK2MSFTNG P11.phx.gbl...
> Example:
> <a href="mailto:so ******@somewher e.com>Send Mail</a>
>
> I've been trying to find documentation via W3 and the RFCs but I have > yet to find documentation that explains how a click event on an anchor > tag can launch a client-side e-mail program and populate its To: field > with an e-mail address.
>
> I've found RFCs that briefly describe mailto but they fail to describe > the actual mechanism that enables the functionality.



Nov 16 '05 #5
Thanks for commenting Nick. Maybe more to be said later...

<%= Clinton Gallagher


"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard .caspershouse.c om> wrote
in message news:ea******** ******@TK2MSFTN GP10.phx.gbl...
clintonG,

You aren't going to find any. This is an implementation detail that is left to the actual client viewing the HTML. It just has to be able to
understand the protocol that is used in the URL, and then perform an action based on that.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard. caspershouse.co m
"clintonG" <csgallagher@RE ************@me tromilwaukee.co m> wrote in message news:eO******** *****@TK2MSFTNG P11.phx.gbl...
Example:
<a href="mailto:so ******@somewher e.com>Send Mail</a>

I've been trying to find documentation via W3 and the RFCs but I have yet to find documentation that explains how a click event on an anchor tag can launch a client-side e-mail program and populate its To: field with an e-mail address.

I've found RFCs that briefly describe mailto but they fail to describe the actual mechanism that enables the functionality.

Comments? Documentation?

--
<%= Clinton Gallagher
A/E/C Consulting, Web Design, e-Commerce Software Development Wauwatosa, Milwaukee County, Wisconsin USA
NET csgallagher@ REMOVETHISTEXT metromilwaukee. com
URL http://www.metromilwaukee.com/clintongallagher/


Nov 16 '05 #6
Thank you for the reference to the article Daniel. It was most helpful
to identify the correct terminology, i.e. "pluggable protocol" that I
can
now also Google.

About Asynchronous Pluggable Protocols
http://msdn.microsoft.com/library/de...w/overview.asp

<excerpt>
About Pluggable Protocols
Internet Explorer uses two mechanisms for registering new URL protocol
handlers. The first method is to register a URL protocol and its
associated
application so that all attempts to navigate to a URL using that
protocol
launch the application (for example, registering applications to handle
mailto: or news: URLs). The second method uses the Asynchronous
Pluggable Protocols API, which allows you to define new protocols by
mapping the protocol scheme to a class.
</excerpt>
--
<%= Clinton Gallagher
A/E/C Consulting, Web Design, e-Commerce Software Development
Wauwatosa, Milwaukee County, Wisconsin USA
NET csgallagher@ REMOVETHISTEXT metromilwaukee. com
URL http://www.metromilwaukee.com/clintongallagher/

"Daniel O'Connell [C# MVP]" <onyxkirx@--NOSPAM--comcast.net> wrote in
message news:#N******** ******@TK2MSFTN GP12.phx.gbl...

"clintonG" <csgallagher@RE ************@me tromilwaukee.co m> wrote in message news:%2******** ********@TK2MSF TNGP11.phx.gbl. ..
Thanks for the rehash of the W3 and RFC documents ;-)

If you want IE specifics, read

http://msdn.microsoft.com/library/de...w/overview.asp
<%= Clinton Gallagher

"James Curran" <Ja*********@mv ps.org> wrote in message
news:Of******** *****@tk2msftng p13.phx.gbl...
The text inside a HREF is a URI. A URI begins with a "scheme"

which
could be an URL protocol, in which "mailto" is one.

Regardless, the URI is passed onto the OS for processing as it

sees fit.

In this case, your email client has told your OS, "When you see a mailto, let me handle it"

--
Truth,
James Curran
Home: www.noveltheory.com Work: www.njtheater.com
Blog: www.honestillusion.com Day Job: www.partsearch.com
(note new day job!)

"clintonG" <csgallagher@RE ************@me tromilwaukee.co m> wrote in

message
news:eO******** *****@TK2MSFTNG P11.phx.gbl...
> Example:
> <a href="mailto:so ******@somewher e.com>Send Mail</a>
>
> I've been trying to find documentation via W3 and the RFCs but I

have
> yet to find documentation that explains how a click event on an

anchor
> tag can launch a client-side e-mail program and populate its To:

field
> with an e-mail address.
>
> I've found RFCs that briefly describe mailto but they fail to

describe
> the actual mechanism that enables the functionality.



Nov 16 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
13306
by: Bill Petrol | last post by:
I'm trying to send a link with a querystring as the body of an email message. My HTML syntax looks something like this: <a href="mailto:xxx@yyy.com?Subject=<? print $subject ?>&Body=<? print urlencode($url) ?>">Send an Email</a> (I've had to URLENCODE the variables first, and it works. If I don't do so, then it doesn't work.) The problem occurs when it is time to display the encoded version. It
15
24766
by: nAmYzArC | last post by:
Hi everyone, I'm setting the body of an email using values from a form firstname = bob lastname = dole ebody = 'First Name: ' + firstname + '\r\n' + 'Last Name: ' + lastname window.location.href = 'mailto:myemail@mycompany.com?subject=test
2
2279
by: McGoo | last post by:
Hello group, I would appreciate some help with this. My webpage is in a frame, and holds a lot of images. Some of these images have links and use Javascript to carry out a mailto operation. When OE is launched, the loading of the page stops, but it will not resume loading after OE is closed - a 'refresh' would work in effect. I tried to reopen the window, but it anchors at the top. Is there some expression or approach I am completely...
1
7870
by: Sam | last post by:
Does anybody know the proper format to pass content-type in a mailto: Link? Here is what I have. I doesn't work if I escape() the whole body either. Thanks! var z = new String("mailto:"); if('w' == move) { z += escape(wh) + "?to=" + escape(wh); } else {
18
28365
by: Shinin | last post by:
I am trying to set up a mailto: link so that the actual address that the email is being sent to is obscured and replaced by a name. For example, I have <a href="mailto:jschmoe@abc.com">Joe Schmoe</a>. When this link is clicked, an email window appears in the clicker's email client where the To: field is jschmoe@abc.com. What I want to have displayed there is Joe Schmoe. I've seen it suggested that formatting the link like this: <a...
13
7102
by: John Baker | last post by:
HI; Quick question: How do I specify an email subject when using the setup <a href="mailto:dogs@cats.com">Mail to the cat</a> Can someone show me how it would look if the subject was "mice"? Thanks a lot
2
3511
by: Steven T. Hatton | last post by:
I'm still not completely sure what's going on with C++ I/O regarding the extractors and inserters. The following document seems a bit inconsistent: http://gcc.gnu.org/onlinedocs/libstdc++/27_io/howto.html#1 Copying a file: WRONG WAY: #include <fstream> std::ifstream IN ("input_file"); std::ofstream OUT ("output_file");
15
3260
by: tshad | last post by:
I am trying to put an persons email address in a response I am sending another person. I can get it to work by doing the following: message.Body = resumeTop & vbCrLf & vbCrLf & "For Applicant: " & session("firstName") & " " & session("lastName") & vbCrLf & "Email: mailto:" & session("email") & vbCrLf & vbCrLf & resumeBottom When the email gets to the person, the email link works. The problem is
17
1455
by: One Handed Man \( OHM - Terry Burns \) | last post by:
Assumes a Form with a Panel on it., Does the Mutex have to be within the address of a thread start address ? Cheers - OHM '----------- *************** ---------------- Private endProgram As Boolean = False Dim image1 As Image = Image.FromFile("..\Images\gun.bmp")
0
9727
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9605
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10647
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10133
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9204
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7669
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6889
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
4339
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
3017
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.