HTML and CSS Reference
In-Depth Information
Adding Other Information to an E-mail Link
Sometimes, you need to add a subject to the e-mail message. This technique can be
very helpful when more than one e-mail link is positioned on a Web page, and each link has
a different purpose. For instance, one e-mail might be used for general questions, whereas
another link might be used for specific information. You can also include a carbon-copy (cc)
address. For instance, to include a subject in the above mailto:, you would use the form:
<a href="mailto:underwatertoursbyeloise@isp.com?subject=Maui
tours">
Sometimes, you need to add a message in the body of the e-mail in addition to the
subject. This technique can be very helpful when more than one e-mail link is positioned
on a Web page, and each link has a different purpose. For instance, one e-mail might be
used for general questions, whereas another link might be used for specific information.
Using the subject and body attributes can be helpful for this scenario. Notice that the two
attributes (subject and body) are separated by an ampersand in the following form:
<a href="mailto:underwatertoursbyeloise@isp.com?subject=Maui
tours&body=Do you have half-day group tours?">
Figure 3-15 shows how the subject “Maui tours” and the message text “Do you
have half-day group tours?” would appear in an e-mail program.
e-mail address
inserted from mailto:
subject is inserted
into Subject of e-mail
message is inserted
into body of e-mail
Figure 3-15
 
Search WWH ::




Custom Search